Revert "Merge #97847 python27Packages.anytree: fix build"

Moving to staging.  It's a really large rebuild.
This reverts commit 9a8bd1e564, reversing
changes made to 9866abf63b.
This commit is contained in:
Vladimír Čunát 2020-09-13 08:13:00 +02:00
parent b441d09fad
commit 97e2ca3447
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,15 +1,13 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, substituteAll
, fetchpatch
, nose
, six
, withGraphviz ? true
, graphviz
, fontconfig
# Tests
, pytestCheckHook
, nose
}:
buildPythonPackage rec {
@ -28,6 +26,10 @@ buildPythonPackage rec {
})
];
checkInputs = [
nose
];
propagatedBuildInputs = [
six
];
@ -40,13 +42,13 @@ buildPythonPackage rec {
# circular dependency anytree → graphviz → pango → glib → gtk-doc → anytree
doCheck = withGraphviz;
checkInputs = [ pytestCheckHook nose ];
checkPhase = ''
runHook preCheck
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"
];
nosetests
runHook postCheck
'';
meta = with lib; {
description = "Powerful and Lightweight Python Tree Data Structure";