@@ -1,4 +1,4 @@
1−{ lib, buildPythonPackage, fetchPypi, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
1+{ lib, buildPythonPackage, fetchPypi, isPy27, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
22
33buildPythonPackage rec {
44 pname = "sphinx-jinja";
@@ -14,7 +14,10 @@ buildPythonPackage rec {
1414
1515 checkInputs = [ sphinx-testing nose glibcLocales ];
1616
17− checkPhase = ''
17+ checkPhase = lib.optionalString (!isPy27) ''
18+ # prevent python from loading locally and breaking namespace
19+ mv sphinxcontrib .sphinxcontrib
20+ '' + ''
1821 # Zip (epub) does not support files with epoch timestamp
1922 LC_ALL="en_US.UTF-8" nosetests -e test_build_epub
2023 '';