python310Packages.pecan: 1.4.2 -> 1.5.1

As of 1.5 pecan only supports sqlalchemy 2.0.
This commit is contained in:
Lein Matsumaru 2023-07-28 22:38:10 +00:00
parent 6bc397a1cc
commit f87a14534e
No known key found for this signature in database
GPG key ID: AAA50652F0479205

View file

@ -3,34 +3,35 @@
, buildPythonPackage , buildPythonPackage
, logutils , logutils
, mako , mako
, webob
, webtest , webtest
, pythonOlder , pythonOlder
, pytestCheckHook , pytestCheckHook
, genshi , genshi
, gunicorn , gunicorn
, jinja2 , jinja2
, six
, sqlalchemy , sqlalchemy
, virtualenv , virtualenv
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pecan"; pname = "pecan";
version = "1.4.2"; version = "1.5.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-SbJV5wHD8UYWBfWw6PVPDCGSLXhF1BTCTdZAn+aV1VA="; hash = "sha256-YGMnLV+GB3P7tLSyrhsJ2oyVQGLvhxFQwGz9sjkdk1U=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
logutils logutils
mako mako
webtest webob
six setuptools
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
@ -40,20 +41,11 @@ buildPythonPackage rec {
jinja2 jinja2
sqlalchemy sqlalchemy
virtualenv virtualenv
webtest
]; ];
pytestFlagsArray = [ pytestFlagsArray = [
"--pyargs pecan" "--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 = [ pythonImportsCheck = [