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";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "2.3.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naiquevin";
|
|
|
|
repo = "pipdeptree";
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-X3SVQzBg+QjBSewRsfiyLqIea0duhe1nUf8ancWLvcI=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInput = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pip
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
graphviz = [ graphviz ];
|
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
checkInputs = [
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line utility to show dependency tree of packages";
|
|
|
|
homepage = "https://github.com/naiquevin/pipdeptree";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ charlesbaynham ];
|
|
|
|
};
|
|
|
|
}
|