Skip to content

Commit

Permalink
Merge pull request #97847 from drewrisinger/zhf/python-anytree
Browse files Browse the repository at this point in the history
python27Packages.anytree: fix build
  • Loading branch information
risicle committed Sep 12, 2020
2 parents 9866abf + 1d86636 commit 9a8bd1e
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions pkgs/development/python-modules/anytree/default.nix
@@ -1,13 +1,15 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, substituteAll
, fetchpatch
, nose
, six
, withGraphviz ? true
, graphviz
, fontconfig
# Tests
, pytestCheckHook
, nose
}:

buildPythonPackage rec {
Expand All @@ -26,10 +28,6 @@ buildPythonPackage rec {
})
];

checkInputs = [
nose
];

propagatedBuildInputs = [
six
];
Expand All @@ -42,13 +40,13 @@ buildPythonPackage rec {
# circular dependency anytree → graphviz → pango → glib → gtk-doc → anytree
doCheck = withGraphviz;

checkPhase = ''
runHook preCheck
checkInputs = [ pytestCheckHook nose ];

nosetests
runHook postCheck
'';
pytestFlagsArray = lib.optionals (pythonOlder "3.4") [
# Use enums, which aren't available pre-python3.4
"--ignore=tests/test_resolver.py"
"--ignore=tests/test_search.py"
];

meta = with lib; {
description = "Powerful and Lightweight Python Tree Data Structure";
Expand Down

0 comments on commit 9a8bd1e

Please sign in to comment.