Diff: https://github.com/thebjorn/pydeps/compare/refs/tags/v1.12.7...v1.12.8 Changelog: https://github.com/thebjorn/pydeps/releases/tag/v1.12.8
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, graphviz
|
|
, stdlib-list
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydeps";
|
|
version = "1.12.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thebjorn";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-6NxI67K1gw6VRO10T2o+5pwMsvCqIgMnHueLbg88XSQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
graphviz
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
graphviz
|
|
stdlib-list
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pyyaml
|
|
toml
|
|
];
|
|
|
|
postPatch = ''
|
|
# Path is hard-coded
|
|
substituteInPlace pydeps/dot.py \
|
|
--replace "dot -Gstart=1" "${lib.makeBinPath [ graphviz ]}/dot -Gstart=1"
|
|
'';
|
|
|
|
disabledTests = [
|
|
# Would require to have additional modules available
|
|
"test_find_package_names"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pydeps"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module dependency visualization";
|
|
homepage = "https://github.com/thebjorn/pydeps";
|
|
changelog = "https://github.com/thebjorn/pydeps/releases/tag/v${version}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|