python3Packages.clize: relax docutils constraint, set up extras-require
This commit is contained in:
parent
280d3f06e9
commit
45e30be21a
1 changed files with 26 additions and 9 deletions
|
@ -1,12 +1,18 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python-dateutil
|
|
||||||
|
# propagtes
|
||||||
, sigtools
|
, sigtools
|
||||||
, six
|
, six
|
||||||
, attrs
|
, attrs
|
||||||
, od
|
, od
|
||||||
, docutils
|
, docutils
|
||||||
|
|
||||||
|
# extras: datetime
|
||||||
|
, python-dateutil
|
||||||
|
|
||||||
|
# tests
|
||||||
, pygments
|
, pygments
|
||||||
, unittest2
|
, unittest2
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -21,6 +27,25 @@ buildPythonPackage rec {
|
||||||
sha256 = "3177a028e4169d8865c79af82bdd441b24311d4bd9c0ae8803641882d340a51d";
|
sha256 = "3177a028e4169d8865c79af82bdd441b24311d4bd9c0ae8803641882d340a51d";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "docutils ~= 0.17.0" "docutils"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
attrs
|
||||||
|
docutils
|
||||||
|
od
|
||||||
|
sigtools
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.extras-require = {
|
||||||
|
datetime = [
|
||||||
|
python-dateutil
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# repeated_test no longer exists in nixpkgs
|
# repeated_test no longer exists in nixpkgs
|
||||||
# also see: https://github.com/epsy/clize/issues/74
|
# also see: https://github.com/epsy/clize/issues/74
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -31,14 +56,6 @@ buildPythonPackage rec {
|
||||||
unittest2
|
unittest2
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
attrs
|
|
||||||
docutils
|
|
||||||
od
|
|
||||||
sigtools
|
|
||||||
six
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "clize" ];
|
pythonImportsCheck = [ "clize" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue