mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +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:
commit
dbb5e61dac
|
@ -16,6 +16,11 @@ buildPythonPackage rec {
|
||||||
sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
|
sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/Pylons/pyramid_chameleon/pull/25
|
||||||
|
./test-renderers-pyramid-import.patch
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
|
propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue