git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.sphinx-jinja: fix python3 namespace during tests
commit4580ffa701139d36d26a9f9acb912fea7dc8e6c4 authorJon <jonringer@users.noreply.github.com> dateThu 13 Feb 2020, 12:53 (7 years ago) parent5a40f6c
1 file changed+5−2
pkgs/development/python-modules/sphinx-jinja/default.nix+5−2
pkgs/development/python-modules/sphinx-jinja/default.nix+5−2
@@ -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 '';