From a43e42b5e962684143023b67f994a8522700a640 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 29 Aug 2018 00:06:28 -0400 Subject: [PATCH 2/2] gnu: Add python-falcon. * gnu/packages/web.scm (python-falcon): New variable. --- gnu/packages/web.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index aea75654b..2912c94f8 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -3794,6 +3794,46 @@ http://opensearch.a9.com} compatible search engines.") their web site.") (home-page "https://metacpan.org/release/WWW-RobotRules"))) +(define-public python-falcon + (package + (name "python-falcon") + (version "1.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "falcon" version)) + (sha256 + (base32 + "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest")))))) + (propagated-inputs + `(("python-mimeparse" ,python-mimeparse) + ("python-six" ,python-six))) + (native-inputs + `(("python-cython" ,python-cython) ;for faster binaries + ("python-pytest" ,python-pytest) + ("python-pyyaml" ,python-pyyaml) + ("python-requests" ,python-requests) + ("python-testtools" ,python-testtools) + ("python-jsonschema" ,python-jsonschema) + ("python-msgpack" ,python-msgpack))) + (home-page "https://falconframework.org") + (synopsis + "Unladen web framework for building APIs and app backends") + (description + "Falcon is a bare-metal Python web API framework for building +high-performance microservices, app backends, and higher-level frameworks.") + (license l:asl2.0))) + +(define-public python2-falcon + (package-with-python2 python-falcon)) + (define-public python-feedparser (package (name "python-feedparser") -- 2.18.0