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

54 lines
893 B
Nix
Raw Normal View History

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