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