gnu: Add python-pecan.
* gnu/packages/python-web.scm (python-pecan): New variable.master
parent
df95872d10
commit
0d58503970
|
@ -5901,6 +5901,53 @@ Swagger.")
|
||||||
"Manuel lets you mix and match traditional doctests with custom test syntax.")
|
"Manuel lets you mix and match traditional doctests with custom test syntax.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public python-pecan
|
||||||
|
(package
|
||||||
|
(name "python-pecan")
|
||||||
|
(version "1.4.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch) ;no tests in pypi release
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/pecan/pecan")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"10lz0cqafx3j24m52vv9ph0bxrzyx6wv2dgz7g9kfm60lhaskqkh"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'relax-requirements
|
||||||
|
(lambda _
|
||||||
|
(substitute* "test-requirements.txt"
|
||||||
|
;; Drop extraneous virtualenv requirement.
|
||||||
|
((".*virtualenv.*") ""))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "pytest" "-vv" "pecan")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list gunicorn
|
||||||
|
python-genshi
|
||||||
|
python-jinja2
|
||||||
|
python-pytest
|
||||||
|
python-sqlalchemy
|
||||||
|
uwsgi))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-logutils
|
||||||
|
python-mako
|
||||||
|
python-six
|
||||||
|
python-webob
|
||||||
|
python-webtest))
|
||||||
|
(home-page "http://github.com/pecan/pecan")
|
||||||
|
(synopsis "WSGI object-dispatching web framework")
|
||||||
|
(description "This package provides a WSGI object-dispatching web
|
||||||
|
framework, designed to be lean and fast, with few dependencies.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-persistent
|
(define-public python-persistent
|
||||||
(package
|
(package
|
||||||
(name "python-persistent")
|
(name "python-persistent")
|
||||||
|
|
Reference in New Issue