Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pipdeptree / default.nix
blobf42041f1a56f037240ba214e795d34b69a3a2c95
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , diff-cover
6 , graphviz
7 , hatchling
8 , hatch-vcs
9 , pytest-mock
10 , pytestCheckHook
11 , pip
12 , virtualenv
15 buildPythonPackage rec {
16   pname = "pipdeptree";
17   version = "2.18.1";
18   pyproject = true;
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "tox-dev";
24     repo = "pipdeptree";
25     rev = "refs/tags/${version}";
26     hash = "sha256-fzxshqh2QurpbilG0gC3NWnUntTRoxOHPpfpg6bPI98=";
27   };
29   build-system = [
30     hatchling
31     hatch-vcs
32   ];
34   dependencies = [
35     pip
36   ];
38   passthru.optional-dependencies = {
39     graphviz = [
40       graphviz
41     ];
42   };
44   nativeCheckInputs = [
45     diff-cover
46     pytest-mock
47     pytestCheckHook
48     virtualenv
49   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
51   pythonImportsCheck = [
52     "pipdeptree"
53   ];
55   disabledTests = [
56     # Don't run console tests
57     "test_console"
58   ];
60   meta = with lib; {
61     description = "Command line utility to show dependency tree of packages";
62     mainProgram = "pipdeptree";
63     homepage = "https://github.com/tox-dev/pipdeptree";
64     changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${version}";
65     license = licenses.mit;
66     maintainers = with maintainers; [ charlesbaynham ];
67   };