python3Packages.sphinx-jinja: fix python3 namespace during tests
This commit is contained in:
parent
5a40f6c329
commit
4580ffa701
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
|
{ lib, buildPythonPackage, fetchPypi, isPy27, pbr, sphinx, sphinx-testing, nose, glibcLocales }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sphinx-jinja";
|
pname = "sphinx-jinja";
|
||||||
@ -14,7 +14,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [ sphinx-testing nose glibcLocales ];
|
checkInputs = [ sphinx-testing nose glibcLocales ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = lib.optionalString (!isPy27) ''
|
||||||
|
# prevent python from loading locally and breaking namespace
|
||||||
|
mv sphinxcontrib .sphinxcontrib
|
||||||
|
'' + ''
|
||||||
# Zip (epub) does not support files with epoch timestamp
|
# Zip (epub) does not support files with epoch timestamp
|
||||||
LC_ALL="en_US.UTF-8" nosetests -e test_build_epub
|
LC_ALL="en_US.UTF-8" nosetests -e test_build_epub
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user