[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: Add python-falcon.
From: |
Maxim Cournoyer |
Subject: |
02/03: gnu: Add python-falcon. |
Date: |
Sun, 14 Oct 2018 22:54:52 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit bb840999c8592b0077c78170e135b59bc79638ed
Author: Maxim Cournoyer <address@hidden>
Date: Wed Aug 29 00:06:28 2018 -0400
gnu: Add python-falcon.
* gnu/packages/python-web.scm (python-falcon): New variable.
---
gnu/packages/python-web.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2a74872..77fb99d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -26,6 +26,7 @@
;;; Copyright © 2018 Tomáš Čech <address@hidden>
;;; Copyright © 2018 Nicolas Goaziou <address@hidden>
;;; Copyright © 2018 Mathieu Othacehe <address@hidden>
+;;; Copyright © 2018 Maxim Cournoyer <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -127,6 +128,59 @@ asynchronous DNS resolutions with a synchronous looking
interface by
using @url{https://github.com/saghul/pycares,pycares}.")
(license license:expat)))
+(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
+ "Web framework for building APIs and application backends")
+ (description
+ "Falcon is a web API framework for building microservices, application
+backends and higher-level frameworks. Among its features are:
address@hidden
address@hidden Optimized and extensible code base
address@hidden Routing via URI templates and REST-inspired resource
+classes
address@hidden Access to headers and bodies through request and response
+classes
address@hidden Request processing via middleware components and hooks
address@hidden Idiomatic HTTP error responses
address@hidden Straightforward exception handling
address@hidden Unit testing support through WSGI helpers and mocks
address@hidden Compatible with both CPython and PyPy
address@hidden Cython support for better performance when used with CPython
address@hidden itemize")
+ (license license:asl2.0)))
+
+(define-public python2-falcon
+ (package-with-python2 python-falcon))
+
(define-public python-furl
(package
(name "python-furl")