2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dateutil
|
|
|
|
, sigtools
|
|
|
|
, six
|
|
|
|
, attrs
|
|
|
|
, od
|
|
|
|
, docutils
|
|
|
|
, repeated_test
|
|
|
|
, pygments
|
|
|
|
, unittest2
|
2020-12-25 13:55:36 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clize";
|
|
|
|
version = "4.1.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187";
|
|
|
|
};
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
# Remove overly restrictive version constraints
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2020-12-25 13:55:36 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
dateutil
|
|
|
|
pygments
|
|
|
|
repeated_test
|
|
|
|
unittest2
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
docutils
|
|
|
|
od
|
|
|
|
sigtools
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
pythonImportsCheck = [ "clize" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line argument parsing for Python";
|
|
|
|
homepage = "https://github.com/epsy/clize";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|