1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

Merge pull request #59860 from risicle/ris-pyramid-chameleon-fix

pythonPackages.pyramid_chameleon: fix build by patching tests
This commit is contained in:
Domen Kožar 2019-04-19 17:15:31 +07:00 committed by GitHub
commit dbb5e61dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -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; {

View file

@ -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)