2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
diff-cover,
|
|
|
|
graphviz,
|
|
|
|
hatchling,
|
|
|
|
hatch-vcs,
|
|
|
|
packaging,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pip,
|
|
|
|
virtualenv,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipdeptree";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.21.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-cs04HGmKG1I42AYH1BOfm9tnbSQuCAxo5KOdJ4/ysos=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-09-30 11:47:45 +00:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pip
|
2024-05-15 15:35:15 +00:00
|
|
|
packaging
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-05-15 15:35:15 +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
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pipdeptree" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
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 ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "pipdeptree";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|