pythonPackages.pecan: 1.0.3 -> 1.2.1
This commit is contained in:
committed by
Frederik Rietdijk
parent
5167116eba
commit
490df67562
40
pkgs/development/python-modules/pecan/default.nix
Normal file
40
pkgs/development/python-modules/pecan/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
# Python deps
|
||||
, singledispatch
|
||||
, logutils
|
||||
, webtest
|
||||
, Mako
|
||||
, genshi
|
||||
, Kajiki
|
||||
, sqlalchemy
|
||||
, gunicorn
|
||||
, jinja2
|
||||
, virtualenv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "pecan";
|
||||
version = "1.2.1";
|
||||
|
||||
patches = [
|
||||
./python36_test_fix.patch
|
||||
];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ikc32rd2hr8j2jxc0mllvdjvxydx3fwfp3z8sdxmkzdkixlb5cd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ singledispatch logutils ];
|
||||
buildInputs = [
|
||||
webtest Mako genshi Kajiki sqlalchemy gunicorn jinja2 virtualenv
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pecan";
|
||||
homepage = "http://github.com/pecan/pecan";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/pecan/tests/test_conf.py b/pecan/tests/test_conf.py
|
||||
index 0573d84..7c98e16 100644
|
||||
--- a/pecan/tests/test_conf.py
|
||||
+++ b/pecan/tests/test_conf.py
|
||||
@@ -157,7 +157,7 @@ class TestConf(PecanTestCase):
|
||||
|
||||
try:
|
||||
configuration.conf_from_file(f.name)
|
||||
- except (ValueError, SystemError) as e:
|
||||
+ except (ValueError, SystemError, ImportError) as e:
|
||||
assert 'relative import' in str(e)
|
||||
else:
|
||||
raise AssertionError(
|
||||
Reference in New Issue
Block a user