2018-10-29 21:07:48 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dateutil
|
|
|
|
, sigtools
|
2018-12-30 15:13:41 +00:00
|
|
|
, six
|
|
|
|
, attrs
|
|
|
|
, od
|
|
|
|
, docutils
|
|
|
|
, repeated_test
|
|
|
|
, pygments
|
2019-12-22 23:39:00 +00:00
|
|
|
, unittest2
|
2020-12-14 02:11:30 +00:00
|
|
|
, pytestCheckHook
|
2018-10-29 21:07:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clize";
|
2019-10-24 07:47:27 +01:00
|
|
|
version = "4.1.1";
|
2018-10-29 21:07:48 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:27 +01:00
|
|
|
sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187";
|
2018-10-29 21:07:48 +00:00
|
|
|
};
|
|
|
|
|
2020-12-14 02:11:30 +00:00
|
|
|
# Remove overly restrictive version constraints
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs"
|
|
|
|
'';
|
|
|
|
|
2019-12-22 23:39:00 +00:00
|
|
|
checkInputs = [
|
2020-12-14 02:11:30 +00:00
|
|
|
pytestCheckHook
|
2018-12-30 15:13:41 +00:00
|
|
|
dateutil
|
|
|
|
pygments
|
|
|
|
repeated_test
|
|
|
|
unittest2
|
|
|
|
];
|
2019-12-22 23:39:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-12-30 15:13:41 +00:00
|
|
|
attrs
|
|
|
|
docutils
|
|
|
|
od
|
|
|
|
sigtools
|
|
|
|
six
|
|
|
|
];
|
2018-10-29 21:07:48 +00:00
|
|
|
|
2020-12-14 02:11:30 +00:00
|
|
|
pythonImportsCheck = [ "clize" ];
|
2019-12-22 23:39:00 +00:00
|
|
|
|
2018-10-29 21:07:48 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command-line argument parsing for Python";
|
|
|
|
homepage = "https://github.com/epsy/clize";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|