mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
graphviz,
|
|
hatchling,
|
|
hatch-vcs,
|
|
packaging,
|
|
pip-requirements-parser,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
pytest-subprocess,
|
|
rich,
|
|
virtualenv,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "pipdeptree";
|
|
version = "3.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tox-dev";
|
|
repo = "pipdeptree";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-EDpKJBDb3CkTMfiLyYMakbm5riIHsf+49yM99uQDPT8=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [ packaging ];
|
|
|
|
optional-dependencies = {
|
|
graphviz = [ graphviz ];
|
|
index = [
|
|
# nab-index # Unstable + not packaged yet
|
|
# nab-python # Same
|
|
pip-requirements-parser
|
|
];
|
|
rich = [ rich ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytest-subprocess
|
|
pytestCheckHook
|
|
virtualenv
|
|
]
|
|
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
|
|
|
pythonImportsCheck = [ "pipdeptree" ];
|
|
|
|
disabledTests = [
|
|
# Don't run console tests
|
|
"test_console"
|
|
];
|
|
|
|
meta = {
|
|
description = "Command line utility to show dependency tree of packages";
|
|
homepage = "https://github.com/tox-dev/pipdeptree";
|
|
changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
charlesbaynham
|
|
mdaniels5757
|
|
];
|
|
mainProgram = "pipdeptree";
|
|
};
|
|
})
|