nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge #97847 python27Packages.anytree: fix build

(cherry picked from commit 9a8bd1e564ed033a6f5773fd95297a3cfe2e43ed)

authored by

Robert Scott and committed by
Vladimír Čunát
195daf80 1ff85d4c

+10 -12
+10 -12
pkgs/development/python-modules/anytree/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , pythonOlder 4 5 , substituteAll 5 - , fetchpatch 6 - , nose 7 6 , six 8 7 , withGraphviz ? true 9 8 , graphviz 10 9 , fontconfig 10 + # Tests 11 + , pytestCheckHook 12 + , nose 11 13 }: 12 14 13 15 buildPythonPackage rec { ··· 28 26 }) 29 27 ]; 30 28 31 - checkInputs = [ 32 - nose 33 - ]; 34 - 35 29 propagatedBuildInputs = [ 36 30 six 37 31 ]; ··· 40 42 # circular dependency anytree → graphviz → pango → glib → gtk-doc → anytree 41 43 doCheck = withGraphviz; 42 44 43 - checkPhase = '' 44 - runHook preCheck 45 + checkInputs = [ pytestCheckHook nose ]; 45 46 46 - nosetests 47 - 48 - runHook postCheck 49 - ''; 47 + pytestFlagsArray = lib.optionals (pythonOlder "3.4") [ 48 + # Use enums, which aren't available pre-python3.4 49 + "--ignore=tests/test_resolver.py" 50 + "--ignore=tests/test_search.py" 51 + ]; 50 52 51 53 meta = with lib; { 52 54 description = "Powerful and Lightweight Python Tree Data Structure";