about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/objgraph/default.nix
blob: c0e0cddb2c80b9ed324b955c97f0b152dae0a478 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv
, buildPythonPackage
, fetchPypi
, isPyPy
, substituteAll
, graphvizPkg
, graphviz
, mock
}:

buildPythonPackage rec {
  pname = "objgraph";
  version = "3.4.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "bf29512d7f8b457b53fa0722ea59f516abb8abc59b78f97f0ef81394a0c615a7";
  };

  # 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;
  };

}