nixpkgs/pkgs/development/python-modules/clize/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
# propagtes
, sigtools
, six
, attrs
, od
, docutils
# extras: datetime
, python-dateutil
# tests
, pygments
2019-12-22 23:39:00 +00:00
, unittest2
2020-12-14 02:11:30 +00:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "clize";
2021-11-14 13:25:39 +00:00
version = "4.2.1";
src = fetchPypi {
inherit pname version;
2021-11-14 13:25:39 +00:00
sha256 = "3177a028e4169d8865c79af82bdd441b24311d4bd9c0ae8803641882d340a51d";
};
postPatch = ''
substituteInPlace setup.py \
--replace "docutils ~= 0.17.0" "docutils"
'';
propagatedBuildInputs = [
attrs
docutils
od
sigtools
six
];
passthru.optional-dependencies = {
datetime = [
python-dateutil
];
};
2022-01-11 21:31:45 +00:00
# repeated_test no longer exists in nixpkgs
# also see: https://github.com/epsy/clize/issues/74
doCheck = false;
2019-12-22 23:39:00 +00:00
checkInputs = [
2020-12-14 02:11:30 +00:00
pytestCheckHook
python-dateutil
pygments
unittest2
];
2019-12-22 23:39:00 +00:00
2020-12-14 02:11:30 +00:00
pythonImportsCheck = [ "clize" ];
2019-12-22 23:39:00 +00:00
meta = with lib; {
description = "Command-line argument parsing for Python";
homepage = "https://github.com/epsy/clize";
license = licenses.mit;
2021-08-10 08:49:10 +00:00
maintainers = with maintainers; [ ];
};
}