evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / objgraph / default.nix
blobbdd104518852b4a287262784a64dd68c5a0ed1f9
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   graphviz,
6   graphvizPkgs,
7   isPyPy,
8   python,
9   pythonOlder,
10   substituteAll,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "objgraph";
16   version = "3.6.1";
17   pyproject = true;
19   disabled = pythonOlder "3.7" || isPyPy;
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-/pbHQUe7yq6GZbOW5TiL3MMZfe67pOY4HwUgLuW0U6c=";
24   };
26   patches = [
27     (substituteAll {
28       src = ./hardcode-graphviz-path.patch;
29       graphviz = graphvizPkgs;
30     })
31   ];
33   build-system = [
34     setuptools
35   ];
37   optional-dependencies = {
38     ipython = [ graphviz ];
39   };
41   pythonImportsCheck = [ "objgraph" ];
43   checkPhase = ''
44     runHook preCheck
45     ${python.interpreter} tests.py
46     runHook postCheck
47   '';
49   meta = with lib; {
50     description = "Draws Python object reference graphs with graphviz";
51     homepage = "https://mg.pov.lt/objgraph/";
52     changelog = "https://github.com/mgedmin/objgraph/blob/${version}/CHANGES.rst";
53     license = licenses.mit;
54     maintainers = with maintainers; [ dotlambda ];
55   };