summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyramid_chameleon
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2019-04-19 01:48:51 +0100
committerRobert Scott <code@humanleg.org.uk>2019-04-19 10:55:12 +0100
commit504e1284de7216f79f13e06acafc58ee98c31890 (patch)
tree2b986da41e5abb7ab5bb99c51ff9ae3470d1e3dc /pkgs/development/python-modules/pyramid_chameleon
parent3464b50c618931bd8259c830ee2fd734aeab38f9 (diff)
downloadnixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.tar
nixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.tar.gz
nixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.tar.bz2
nixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.tar.lz
nixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.tar.xz
nixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.tar.zst
nixpkgs-504e1284de7216f79f13e06acafc58ee98c31890.zip
pythonPackages.pyramid_chameleon: fix build by patching tests
looking into this part of the test suite it appears it started as a
modified copy of part of the main pyramid test suite. presumably this
line simply never got converted - change it to match the similar
imports.
Diffstat (limited to 'pkgs/development/python-modules/pyramid_chameleon')
-rw-r--r--pkgs/development/python-modules/pyramid_chameleon/default.nix5
-rw-r--r--pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patch11
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyramid_chameleon/default.nix b/pkgs/development/python-modules/pyramid_chameleon/default.nix
index 257be31f32d..398869e467b 100644
--- a/pkgs/development/python-modules/pyramid_chameleon/default.nix
+++ b/pkgs/development/python-modules/pyramid_chameleon/default.nix
@@ -16,6 +16,11 @@ buildPythonPackage rec {
     sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
   };
 
+  patches = [
+    # https://github.com/Pylons/pyramid_chameleon/pull/25
+    ./test-renderers-pyramid-import.patch
+  ];
+
   propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
 
   meta = with stdenv.lib; {
diff --git a/pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patch b/pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patch
new file mode 100644
index 00000000000..635ed3510fc
--- /dev/null
+++ b/pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patch
@@ -0,0 +1,11 @@
+--- a/pyramid_chameleon/tests/test_renderers.py
++++ b/pyramid_chameleon/tests/test_renderers.py
+@@ -258,7 +258,7 @@ class TestChameleonRendererLookup(unittest.TestCase):
+         self.assertRaises(ValueError, lookup.__call__, info)
+ 
+     def test___call__spec_alreadyregistered(self):
+-        from pyramid import tests
++        from pyramid_chameleon import tests
+         module_name = tests.__name__
+         relpath = 'test_renderers.py'
+         spec = '%s:%s' % (module_name, relpath)