pythonPackages.clize: fix build

This commit is contained in:
IvarWithoutBones 2020-12-14 03:11:30 +01:00
parent 8805a49d98
commit 3017f4f757

View file

@ -10,7 +10,7 @@
, repeated_test , repeated_test
, pygments , pygments
, unittest2 , unittest2
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -22,12 +22,17 @@ buildPythonPackage rec {
sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187"; sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187";
}; };
# Remove overly restrictive version constraints
postPatch = ''
substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs"
'';
checkInputs = [ checkInputs = [
pytestCheckHook
dateutil dateutil
pygments pygments
repeated_test repeated_test
unittest2 unittest2
pytest
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -38,14 +43,11 @@ buildPythonPackage rec {
six six
]; ];
checkPhase = '' pythonImportsCheck = [ "clize" ];
pytest
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Command-line argument parsing for Python"; description = "Command-line argument parsing for Python";
homepage = "https://github.com/epsy/clize"; homepage = "https://github.com/epsy/clize";
license = licenses.mit; license = licenses.mit;
}; };
} }