From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35170)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1fwYUd-0000IS-2T
	for guix-patches@gnu.org; Sun, 02 Sep 2018 15:57:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1fwYUY-00015e-Tq
	for guix-patches@gnu.org; Sun, 02 Sep 2018 15:57:06 -0400
Received: from debbugs.gnu.org ([208.118.235.43]:38318)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1fwYUY-00015D-MI
	for guix-patches@gnu.org; Sun, 02 Sep 2018 15:57:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1fwYUY-0007gO-Dq
	for guix-patches@gnu.org; Sun, 02 Sep 2018 15:57:02 -0400
Subject: [bug#32565] [PATCHv3] Add python-falcon, python-falcon-cors.
Resent-Message-ID: <handler.32565.B32565.153591816829463@debbugs.gnu.org>
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
References: <87va7tak4m.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me>
	<handler.32565.B.153551583314214.ack@debbugs.gnu.org>
	<87r2ihaiw6.fsf_-_@gmail.com>
Date: Sun, 02 Sep 2018 15:55:58 -0400
In-Reply-To: <87r2ihaiw6.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Wed,
	29 Aug 2018 00:36:41 -0400")
Message-ID: <87efebad2p.fsf_-_@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
	<mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/guix-patches/>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
	<mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org
Sender: "Guix-patches" <guix-patches-bounces+kyle=kyleam.com@gnu.org>
To: 32565@debbugs.gnu.org

--=-=-=
Content-Type: text/plain

Hello again,

Hopefully the last update to the python-falcon, python-falcon-cors
packages. I had moved the packages to python-web.scm, but failed to
notice the license field should be adapted to use license:asl2.0 rather
than l:asl2.0.

Don't forget to merge the patch "gnu: python-mimeparse: Update to
1.6.0." in my original mail as well, as it is required for Falcon to
work properly.

Thank you,

Maxim


--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment; filename=0001-gnu-Add-python-falcon.patch
Content-Transfer-Encoding: quoted-printable
Content-Description: v3

>From c3a1955a2198310b3c096e539eaaaf57a79aa970 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Wed, 29 Aug 2018 00:06:28 -0400
Subject: [PATCH 1/2] gnu: Add python-falcon.

* gnu/packages/python-web.scm (python-falcon): New variable.
---
 gnu/packages/python-web.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index fd76c0c60..8cbb355ff 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -26,6 +26,7 @@
 ;;; Copyright =C2=A9 2018 Tom=C3=A1=C5=A1 =C4=8Cech <sleep_walker@gnu.org>
 ;;; Copyright =C2=A9 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright =C2=A9 2018 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright =C2=A9 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -126,6 +127,46 @@ asynchronous DNS resolutions with a synchronous lookin=
g interface by
 using @url{https://github.com/saghul/pycares,pycares}.")
     (license license:expat)))
=20
+(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 license:asl2.0)))
+
+(define-public python2-falcon
+  (package-with-python2 python-falcon))
+
 (define-public python-furl
   (package
     (name "python-furl")
--=20
2.18.0


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0002-gnu-Add-python-falcon-cors.patch
Content-Description: v3

>From 3ecfbe57465aed1062c56ae2b42165a5a07605b5 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Wed, 29 Aug 2018 00:33:17 -0400
Subject: [PATCH 2/2] gnu: Add python-falcon-cors.

* gnu/packages/python-web.scm (python-falcon-cors): New variable.
---
 gnu/packages/python-web.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8cbb355ff..ef2cc3176 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -167,6 +167,29 @@ high-performance microservices, app backends, and higher-level frameworks.")
 (define-public python2-falcon
   (package-with-python2 python-falcon))
 
+(define-public python-falcon-cors
+  (package
+    (name "python-falcon-cors")
+    (version "1.1.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "falcon-cors" version))
+       (sha256
+        (base32
+         "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-falcon" ,python-falcon)))
+    (home-page
+     "https://github.com/lwcolton/falcon-cors")
+    (synopsis "Falcon CORS middlware")
+    (description "This middleware provides CORS support for Falcon.")
+    (license license:asl2.0)))
+
+(define-public python2-falcon-cors
+  (package-with-python2 python-falcon-cors))
+
 (define-public python-furl
   (package
     (name "python-furl")
-- 
2.18.0


--=-=-=--