lol

pythonPackages.prompt-toolkit: cleanup, use pytestCheckHook

+26 -19
+13 -10
pkgs/development/python-modules/prompt_toolkit/1.nix pkgs/development/python-modules/prompt-toolkit/1.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , pytest 4 + , pytestCheckHook 5 5 , docopt 6 6 , six 7 7 , wcwidth ··· 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 - pname = "prompt_toolkit"; 12 + pname = "prompt-toolkit"; 13 13 version = "1.0.18"; 14 14 15 15 src = fetchPypi { 16 - inherit pname version; 16 + pname = "prompt_toolkit"; 17 + inherit version; 17 18 sha256 = "dd4fca02c8069497ad931a2d09914c6b0d1b50151ce876bc15bde4c747090126"; 18 19 }; 19 - checkPhase = '' 20 - rm prompt_toolkit/win32_types.py 21 - py.test -k 'not test_pathcompleter_can_expanduser' 22 - ''; 23 20 24 - checkInputs = [ pytest ]; 25 21 propagatedBuildInputs = [ docopt six wcwidth pygments ]; 26 22 27 - meta = { 23 + checkInputs = [ pytestCheckHook ]; 24 + 25 + disabledTests = [ 26 + "test_pathcompleter_can_expanduser" 27 + ]; 28 + 29 + meta = with lib; { 28 30 description = "Python library for building powerful interactive command lines"; 29 31 longDescription = '' 30 32 prompt_toolkit could be a replacement for readline, but it can be ··· 33 35 with a nice interactive Python shell (called ptpython) built on top. 34 36 ''; 35 37 homepage = "https://github.com/jonathanslenders/python-prompt-toolkit"; 36 - license = lib.licenses.bsd3; 38 + maintainers = with maintainers; [ ]; 39 + license = licenses.bsd3; 37 40 }; 38 41 }
+13 -9
pkgs/development/python-modules/prompt_toolkit/default.nix pkgs/development/python-modules/prompt-toolkit/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , pytest 4 + , pytestCheckHook 5 5 , six 6 6 , wcwidth 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 - pname = "prompt_toolkit"; 10 + pname = "prompt-toolkit"; 11 11 version = "3.0.19"; 12 12 13 13 src = fetchPypi { 14 - inherit pname version; 14 + pname = "prompt_toolkit"; 15 + inherit version; 15 16 sha256 = "08360ee3a3148bdb5163621709ee322ec34fc4375099afa4bbf751e9b7b7fa4f"; 16 17 }; 17 - checkPhase = '' 18 - py.test -k 'not test_pathcompleter_can_expanduser' 19 - ''; 20 18 21 - checkInputs = [ pytest ]; 22 19 propagatedBuildInputs = [ six wcwidth ]; 23 20 24 - meta = { 21 + checkInputs = [ pytestCheckHook ]; 22 + 23 + disabledTests = [ 24 + "test_pathcompleter_can_expanduser" 25 + ]; 26 + 27 + meta = with lib; { 25 28 description = "Python library for building powerful interactive command lines"; 26 29 longDescription = '' 27 30 prompt_toolkit could be a replacement for readline, but it can be ··· 30 33 with a nice interactive Python shell (called ptpython) built on top. 31 34 ''; 32 35 homepage = "https://github.com/jonathanslenders/python-prompt-toolkit"; 33 - license = lib.licenses.bsd3; 36 + maintainers = with maintainers; [ ]; 37 + license = licenses.bsd3; 34 38 }; 35 39 }