summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-01-12 19:19:50 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-01-12 19:19:50 +0100
commit6f3b698103018f7c358653b050e92a4e5260be6c (patch)
treedcd41c054aa63c82f4cfa47cde0a711a8660c30a
parentpython310Packages.billiard: add pythonImportsCheck (diff)
downloadnixpkgs-6f3b698103018f7c358653b050e92a4e5260be6c.tar.gz
python310Packages.pecan: 1.4.0 -> 1.4.1
-rw-r--r--pkgs/development/python-modules/pecan/default.nix40
1 files changed, 17 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/pecan/default.nix b/pkgs/development/python-modules/pecan/default.nix
index a488f15fbed8..0931cc2b28d8 100644
--- a/pkgs/development/python-modules/pecan/default.nix
+++ b/pkgs/development/python-modules/pecan/default.nix
@@ -1,46 +1,36 @@
{ lib
, fetchPypi
-, fetchpatch
, buildPythonPackage
-, isPy27
-# Python deps
, logutils
, Mako
-, six
, webtest
-# Test Inputs
+, pythonOlder
, pytestCheckHook
, genshi
, gunicorn
, jinja2
-, Kajiki
-, mock
+, six
, sqlalchemy
, virtualenv
}:
buildPythonPackage rec {
pname = "pecan";
- version = "1.4.0";
+ version = "1.4.1";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
+ sha256 = "sha256-LL0O7btXR8BM3xjEquTxxunZUPOvcK8lRLB09+16BIA=";
};
- patches = [
- (fetchpatch {
- name = "Support-SQLAlchemy-1.4x.patch";
- url = "https://github.com/pecan/pecan/commit/a520bd544c0b02a02dbf692b8d6e2f7a503ee6d4.patch";
- sha256 = "sha256-QCHRjwnpy8ndCvcuyE5Y65BybKYthJXDySUtmpJD8gY=";
- })
- ];
-
propagatedBuildInputs = [
logutils
Mako
- six
webtest
+ six
];
checkInputs = [
@@ -48,19 +38,23 @@ buildPythonPackage rec {
genshi
gunicorn
jinja2
- mock
sqlalchemy
virtualenv
- ] ++ lib.optionals isPy27 [ Kajiki ];
+ ];
pytestFlagsArray = [
- "--pyargs pecan "
+ "--pyargs pecan"
+ ];
+
+ pythonImportsCheck = [
+ "pecan"
];
meta = with lib; {
- description = "WSGI object-dispatching web framework, designed to be lean and fast";
- homepage = "https://www.pecanpy.org/";
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
+ description = "WSGI object-dispatching web framework";
+ homepage = "https://www.pecanpy.org/";
+ license = licenses.bsd3;
maintainers = with maintainers; [ applePrincess ];
};
}