Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / clize / default.nix
blob1418db69a393729e993c245c850aae399cf1a104
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , dateutil
5 , sigtools
6 , six
7 , attrs
8 , od
9 , docutils
10 , repeated_test
11 , pygments
12 , unittest2
13 , pytestCheckHook
16 buildPythonPackage rec {
17   pname = "clize";
18   version = "4.1.1";
20   src = fetchPypi {
21     inherit pname version;
22     sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187";
23   };
25   # Remove overly restrictive version constraints
26   postPatch = ''
27     substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs"
28   '';
30   checkInputs = [
31     pytestCheckHook
32     dateutil
33     pygments
34     repeated_test
35     unittest2
36   ];
38   propagatedBuildInputs = [
39     attrs
40     docutils
41     od
42     sigtools
43     six
44   ];
46   pythonImportsCheck = [ "clize" ];
48   meta = with lib; {
49     description = "Command-line argument parsing for Python";
50     homepage = "https://github.com/epsy/clize";
51     license = licenses.mit;
52   };