git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit504e1284de7216f79f13e06acafc58ee98c31890 authorRobert Scott <code@humanleg.org.uk> dateFri 19 Apr 2019, 01:48 (8 years ago) parent3464b50
2 files changed+16
pkgs/development/python-modules/pyramid_chameleon/default.nix+5 pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patch+11
pkgs/development/python-modules/pyramid_chameleon/default.nix+5
@@ -16,6 +16,11 @@ buildPythonPackage rec {
1616 sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
1717 };
1818
19+ patches = [
20+ # https://github.com/Pylons/pyramid_chameleon/pull/25
21+ ./test-renderers-pyramid-import.patch
22+ ];
23+
1924 propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
2025
2126 meta = with stdenv.lib; {
pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/pyramid_chameleon/tests/test_renderers.py
2++++ b/pyramid_chameleon/tests/test_renderers.py
3+@@ -258,7 +258,7 @@ class TestChameleonRendererLookup(unittest.TestCase):
4+ self.assertRaises(ValueError, lookup.__call__, info)
5+
6+ def test___call__spec_alreadyregistered(self):
7+- from pyramid import tests
8++ from pyramid_chameleon import tests
9+ module_name = tests.__name__
10+ relpath = 'test_renderers.py'
11+ spec = '%s:%s' % (module_name, relpath)