9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
54 lines
990 B
Nix
54 lines
990 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, graphviz
|
|
, graphvizPkgs
|
|
, isPyPy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, substituteAll
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "objgraph";
|
|
version = "3.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5" || isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NpVnw3tPL5KBYLb27e3L6o/H6SmDGHf9EFbHipAMF9M=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./hardcode-graphviz-path.patch;
|
|
graphviz = graphvizPkgs;
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
graphviz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"objgraph"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Draws Python object reference graphs with graphviz";
|
|
homepage = "https://mg.pov.lt/objgraph/";
|
|
changelog = "https://github.com/mgedmin/objgraph/blob/${version}/CHANGES.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|