python.pkgs.objgraph: fix build

Fixes https://github.com/NixOS/nixpkgs/issues/52518.
This commit is contained in:
Robert Schütz 2018-12-19 14:13:16 +01:00
parent 6972c433ab
commit 407f9ba5c9

View File

@ -1,8 +1,9 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pkgs
, isPyPy , isPyPy
, graphviz
, mock
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -17,7 +18,9 @@ buildPythonPackage rec {
# Tests fail with PyPy. # Tests fail with PyPy.
disabled = isPyPy; disabled = isPyPy;
propagatedBuildInputs = [pkgs.graphviz]; propagatedBuildInputs = [ graphviz ];
checkInputs = [ mock ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Draws Python object reference graphs with graphviz"; description = "Draws Python object reference graphs with graphviz";