unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32565] [PATCH] Add python-falcon.
@ 2018-08-29  4:10 Maxim Cournoyer
       [not found] ` <handler.32565.B.153551583314214.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Maxim Cournoyer @ 2018-08-29  4:10 UTC (permalink / raw)
  To: 32565


[-- Attachment #1.1: Type: text/plain, Size: 86 bytes --]

Hello,

This adds Falcon, a Python library for creating web APIs.

Thank you,

Maxim


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-python-mimeparse-Update-to-1.6.0.patch --]
[-- Type: text/x-patch, Size: 1477 bytes --]

From 8149807aa4795faa8f3a23f5ed749c6eed1c6522 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Wed, 29 Aug 2018 00:05:07 -0400
Subject: [PATCH 1/2] gnu: python-mimeparse: Update to 1.6.0.

* gnu/packages/python.scm (python-mimeparse): Update to 1.6.0.
[phases]: Enable tests with a custom check phase.
---
 gnu/packages/python.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 33bbc28ed..8e5bee49d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1669,7 +1669,7 @@ software.")
 (define-public python-mimeparse
   (package
     (name "python-mimeparse")
-    (version "0.1.4")
+    (version "1.6.0")
     (source
      (origin
        (method url-fetch)
@@ -1678,10 +1678,14 @@ software.")
              version ".tar.gz"))
        (sha256
         (base32
-         "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
+         "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
     (build-system python-build-system)
     (arguments
-     '(#:tests? #f)) ; no setup.py test command
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "./mimeparse_test.py"))))))
     (home-page
      "https://github.com/dbtsai/python-mimeparse")
     (synopsis "Python library for parsing MIME types")
-- 
2.18.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-python-falcon.patch --]
[-- Type: text/x-patch, Size: 2170 bytes --]

From a43e42b5e962684143023b67f994a8522700a640 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 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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-15  7:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-29  4:10 [bug#32565] [PATCH] Add python-falcon Maxim Cournoyer
     [not found] ` <handler.32565.B.153551583314214.ack@debbugs.gnu.org>
2018-08-29  4:36   ` [bug#32565] [PATCH] Add python-falcon-cors Maxim Cournoyer
2018-08-30 13:29     ` [bug#32565] [PATCHv2] Add python-falcon and python-falcon-cors Maxim Cournoyer
2018-09-02 19:55     ` [bug#32565] [PATCHv3] Add python-falcon, python-falcon-cors Maxim Cournoyer
2018-09-16 20:31       ` Ludovic Courtès
2018-10-12 13:18         ` Ludovic Courtès
2018-10-15  2:58         ` bug#32565: " Maxim Cournoyer
2018-10-15  7:55           ` [bug#32565] " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).