forked from mirrors/nixpkgs
Merge pull request #171038 from fabaff/pydeps
python3Packages.pydeps: init at 1.10.17
This commit is contained in:
commit
a90410b6ad
60
pkgs/development/python-modules/pydeps/default.nix
Normal file
60
pkgs/development/python-modules/pydeps/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, graphviz
|
||||
, stdlib-list
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydeps";
|
||||
version = "1.10.17";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thebjorn";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-V0LgHFvGvJqDHmyXJNb0sJjRuqGGDZpV467XDmdFg5k=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
graphviz
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
graphviz
|
||||
stdlib-list
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pyyaml
|
||||
];
|
||||
|
||||
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";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -9558,6 +9558,8 @@ with pkgs;
|
|||
|
||||
py-spy = callPackage ../development/tools/py-spy { };
|
||||
|
||||
pydeps = with python3Packages; toPythonApplication pydeps;
|
||||
|
||||
pytrainer = callPackage ../applications/misc/pytrainer { };
|
||||
|
||||
pywal = with python3Packages; toPythonApplication pywal;
|
||||
|
|
|
@ -6997,6 +6997,10 @@ in {
|
|||
|
||||
pydenticon = callPackage ../development/python-modules/pydenticon { };
|
||||
|
||||
pydeps = callPackage ../development/python-modules/pydeps {
|
||||
inherit (pkgs) graphviz;
|
||||
};
|
||||
|
||||
pydes = callPackage ../development/python-modules/pydes { };
|
||||
|
||||
py-desmume = callPackage ../development/python-modules/py-desmume { };
|
||||
|
|
Loading…
Reference in a new issue