1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 docutils,
6 fetchPypi,
7 od,
8 pygments,
9 pytestCheckHook,
10 pythonOlder,
11 python-dateutil,
12 repeated-test,
13 setuptools-scm,
14 sigtools,
15}:
16
17buildPythonPackage rec {
18 pname = "clize";
19 version = "5.0.2";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-BH9aRHNgJxirG4VnKn4VMDOHF41agcJ13EKd+sHstRA=";
27 };
28
29 nativeBuildInputs = [ setuptools-scm ];
30
31 propagatedBuildInputs = [
32 attrs
33 docutils
34 od
35 sigtools
36 ];
37
38 passthru.optional-dependencies = {
39 datetime = [ python-dateutil ];
40 };
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 python-dateutil
45 pygments
46 repeated-test
47 ];
48
49 pythonImportsCheck = [ "clize" ];
50
51 meta = with lib; {
52 description = "Command-line argument parsing for Python";
53 homepage = "https://github.com/epsy/clize";
54 license = licenses.mit;
55 maintainers = with maintainers; [ ];
56 };
57}