diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/objgraph/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/objgraph/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/objgraph/default.nix b/nixpkgs/pkgs/development/python-modules/objgraph/default.nix new file mode 100644 index 000000000000..0eb1deee0d39 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/objgraph/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPyPy +, substituteAll +, graphvizPkg +, graphviz +, mock +}: + +buildPythonPackage rec { + pname = "objgraph"; + version = "3.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "4a0c2c6268e10a9e8176ae054ff3faac9a432087801e1f95c3ebbe52550295a0"; + }; + + # Tests fail with PyPy. + disabled = isPyPy; + + patches = [ + (substituteAll { + src = ./hardcode-graphviz-path.patch; + graphviz = graphvizPkg; + }) + ]; + + propagatedBuildInputs = [ graphviz ]; + + checkInputs = [ mock ]; + + meta = with stdenv.lib; { + description = "Draws Python object reference graphs with graphviz"; + homepage = https://mg.pov.lt/objgraph/; + license = licenses.mit; + }; + +} |