nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 graphviz, 6 graphvizPkgs, 7 isPyPy, 8 python, 9 replaceVars, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "objgraph"; 15 version = "3.6.2"; 16 pyproject = true; 17 18 disabled = isPyPy; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-ALny9A90IuPH9FphxNr9r4HwP/BknW6uyGbwEDDlGtg="; 23 }; 24 25 patches = [ 26 (replaceVars ./hardcode-graphviz-path.patch { 27 graphviz = graphvizPkgs; 28 }) 29 ]; 30 31 build-system = [ 32 setuptools 33 ]; 34 35 optional-dependencies = { 36 ipython = [ graphviz ]; 37 }; 38 39 pythonImportsCheck = [ "objgraph" ]; 40 41 checkPhase = '' 42 runHook preCheck 43 ${python.interpreter} tests.py 44 runHook postCheck 45 ''; 46 47 meta = { 48 description = "Draws Python object reference graphs with graphviz"; 49 homepage = "https://mg.pov.lt/objgraph/"; 50 changelog = "https://github.com/mgedmin/objgraph/blob/${version}/CHANGES.rst"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ dotlambda ]; 53 }; 54}