Merge pull request #106865 from IvarWithoutBones/fix-clize

pythonPackages.clize: fix build

authored by

Mario Rodas and committed by
GitHub
50daf0dd 2a8ee8e1

+8 -6
+8 -6
pkgs/development/python-modules/clize/default.nix
··· 10 , repeated_test 11 , pygments 12 , unittest2 13 - , pytest 14 }: 15 16 buildPythonPackage rec { ··· 21 inherit pname version; 22 sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187"; 23 }; 24 25 checkInputs = [ 26 dateutil 27 pygments 28 repeated_test 29 unittest2 30 - pytest 31 ]; 32 33 propagatedBuildInputs = [ ··· 38 six 39 ]; 40 41 - checkPhase = '' 42 - pytest 43 - ''; 44 45 meta = with stdenv.lib; { 46 description = "Command-line argument parsing for Python"; 47 homepage = "https://github.com/epsy/clize"; 48 license = licenses.mit; 49 }; 50 - 51 }
··· 10 , repeated_test 11 , pygments 12 , unittest2 13 + , pytestCheckHook 14 }: 15 16 buildPythonPackage rec { ··· 21 inherit pname version; 22 sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187"; 23 }; 24 + 25 + # Remove overly restrictive version constraints 26 + postPatch = '' 27 + substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs" 28 + ''; 29 30 checkInputs = [ 31 + pytestCheckHook 32 dateutil 33 pygments 34 repeated_test 35 unittest2 36 ]; 37 38 propagatedBuildInputs = [ ··· 43 six 44 ]; 45 46 + pythonImportsCheck = [ "clize" ]; 47 48 meta = with stdenv.lib; { 49 description = "Command-line argument parsing for Python"; 50 homepage = "https://github.com/epsy/clize"; 51 license = licenses.mit; 52 }; 53 }