diff options
-rw-r--r-- | pkgs/development/python-modules/pecan/default.nix | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/pecan/default.nix b/pkgs/development/python-modules/pecan/default.nix index c0954ec3ca311..1de099579de39 100644 --- a/pkgs/development/python-modules/pecan/default.nix +++ b/pkgs/development/python-modules/pecan/default.nix @@ -3,34 +3,35 @@ , buildPythonPackage , logutils , mako +, webob , webtest , pythonOlder , pytestCheckHook , genshi , gunicorn , jinja2 -, six , sqlalchemy , virtualenv +, setuptools }: buildPythonPackage rec { pname = "pecan"; - version = "1.4.2"; + version = "1.5.1"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-SbJV5wHD8UYWBfWw6PVPDCGSLXhF1BTCTdZAn+aV1VA="; + hash = "sha256-YGMnLV+GB3P7tLSyrhsJ2oyVQGLvhxFQwGz9sjkdk1U="; }; propagatedBuildInputs = [ logutils mako - webtest - six + webob + setuptools ]; nativeCheckInputs = [ @@ -40,20 +41,11 @@ buildPythonPackage rec { jinja2 sqlalchemy virtualenv + webtest ]; pytestFlagsArray = [ "--pyargs pecan" - # tests fail with sqlalchemy 2.0 - ] ++ lib.optionals (lib.versionAtLeast sqlalchemy.version "2.0") [ - # The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy - # 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method - # of the ``sqlalchemy.orm.registry`` class to perform classical - # mapping. - # https://github.com/pecan/pecan/issues/143 - "--deselect=pecan/tests/test_jsonify.py::TestJsonifySQLAlchemyGenericEncoder::test_result_proxy" - "--deselect=pecan/tests/test_jsonify.py::TestJsonifySQLAlchemyGenericEncoder::test_row_proxy" - "--deselect=pecan/tests/test_jsonify.py::TestJsonifySQLAlchemyGenericEncoder::test_sa_object" ]; pythonImportsCheck = [ |