2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2022-09-30 11:47:45 +00:00
|
|
|
, diff-cover
|
|
|
|
, graphviz
|
|
|
|
, hatchling
|
|
|
|
, hatch-vcs
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, pip
|
2022-09-30 11:47:45 +00:00
|
|
|
, virtualenv
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipdeptree";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.15.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-04 12:27:35 +00:00
|
|
|
owner = "tox-dev";
|
2022-04-27 09:35:20 +00:00
|
|
|
repo = "pipdeptree";
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-25KcmBHoKfJoTE/GSa//QlKCNrYGSAFzTuASRIv0b+w=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pip
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
passthru.optional-dependencies = {
|
2022-11-04 12:27:35 +00:00
|
|
|
graphviz = [
|
|
|
|
graphviz
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
diff-cover
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
virtualenv
|
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pipdeptree"
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Don't run console tests
|
|
|
|
"test_console"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line utility to show dependency tree of packages";
|
2022-11-04 12:27:35 +00:00
|
|
|
homepage = "https://github.com/tox-dev/pipdeptree";
|
|
|
|
changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ charlesbaynham ];
|
|
|
|
};
|
|
|
|
}
|