python3Packages.cmd2: 0.8.0 -> 0.9.1

This commit is contained in:
Matthieu Coudron 2018-06-14 10:25:58 +09:00
parent d62a355884
commit bb47fd0fec

View File

@ -1,17 +1,15 @@
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
, pyperclip, six, pyparsing, vim
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k
, pyperclip, six, pyparsing, vim, wcwidth, colorama
, contextlib2 ? null, subprocess32 ? null
, pytest, mock, which, fetchFromGitHub, glibcLocales
}:
buildPythonPackage rec {
pname = "cmd2";
version = "0.8.0";
version = "0.9.1";
src = fetchFromGitHub {
owner = "python-cmd2";
repo = "cmd2";
rev = version;
sha256 = "0nw2b7n7zg51bc3glxw0l9fn91mwjnjshklhmxhyvjbsg7khf64z";
src = fetchPypi {
inherit pname version;
sha256 = "1wpw4f9zix30hfncm0hwxjjdx78zq26x3r8s9nvsq9vnxf41xb49";
};
LC_ALL="en_US.UTF-8";
@ -31,14 +29,16 @@ buildPythonPackage rec {
py.test -k 'not test_path_completion_user_expansion'
'';
doCheck = !stdenv.isDarwin;
disabled = !isPy3k;
propagatedBuildInputs = [
colorama
pyperclip
six
pyparsing
wcwidth
]
++ stdenv.lib.optional (pythonOlder "3.5") contextlib2
++ stdenv.lib.optional (pythonOlder "3.0") subprocess32
;
meta = with stdenv.lib; {