unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: 37234@debbugs.gnu.org
Subject: [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn.
Date: Fri, 30 Aug 2019 16:25:19 +0200	[thread overview]
Message-ID: <20190830142539.28376-1-mbakke@fastmail.com> (raw)
In-Reply-To: <20190830142333.27853-1-mbakke@fastmail.com>

* gnu/packages/check.scm (python-pytest-3.2, python-pytest-cov-2.5,
python-coverage-4.3): New public variables.
* gnu/packages/python-web.scm (python-gunicorn): New public variable.
---
 gnu/packages/check.scm      | 41 ++++++++++++++++++++++++++++++++++++-
 gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++-
 2 files changed, 67 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 085538b2de..e81cd50b66 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -25,7 +25,7 @@
 ;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2017 ng0 <ng0@n0.is>
 ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
-;;; Copyright © 2016, 2017, 2018 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
@@ -776,6 +776,21 @@ and many external plugins.")
                 ("python2-pathlib2" ,python2-pathlib2-bootstrap)
                 ,@(package-propagated-inputs pytest))))))
 
+;; python-gunicorn requires this ancient version for Python 2.6 support.
+(define-public python-pytest-3.2
+  (package
+    (inherit python-pytest)
+    (version "3.2.5")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pytest" version))
+              (sha256
+               (base32
+                "10cbsyyyzamhvi1gqqyhccsx906xlcwcgddvldalqi1v27vx8nvd"))))
+    (arguments
+     ;; XXX: Tests require similarly ancient versions of many dependencies.
+     `(#:tests? #f))))
+
 (define-public python-pytest-cov
   (package
     (name "python-pytest-cov")
@@ -811,6 +826,18 @@ supports coverage of subprocesses.")
 (define-public python2-pytest-cov
   (package-with-python2 python-pytest-cov))
 
+;; Some packages require this old version.  Remove when no longer needed.
+(define-public python-pytest-cov-2.5
+  (package
+    (inherit python-pytest-cov)
+    (version "2.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pytest-cov" version))
+              (sha256
+               (base32
+                "0bbfpwdh9k3636bxc88vz9fa7vf4akchgn513ql1vd0xy4n7bah3"))))))
+
 (define-public python-pytest-runner
   (package
     (name "python-pytest-runner")
@@ -1289,6 +1316,18 @@ executed.")
 (define-public python2-coverage
   (package-with-python2 python-coverage))
 
+;; python-gunicorn requires this version.  Remove once no longer needed.
+(define-public python-coverage-4.3
+  (package
+    (inherit python-coverage)
+    (version "4.3.4")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "coverage" version))
+              (sha256
+               (base32
+                "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa"))))))
+
 (define-public python-cov-core
   (package
     (name "python-cov-core")
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9b88d66118..3ed0c6dd16 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4,7 +4,7 @@
 ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
 ;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
-;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2019 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2016, 2017 Julien Lepiller <julien@lepiller.eu>
@@ -421,6 +421,32 @@ both of which are installed automatically if you install this library.")
 (define-public python2-flask-babel
   (package-with-python2 python-flask-babel))
 
+(define-public python-gunicorn
+  (package
+    (name "python-gunicorn")
+    (version "19.9.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "gunicorn" version))
+              (sha256
+               (base32
+                "1wzlf4xmn6qjirh5w81l6i6kqjnab1n1qqkh7zsj1yb6gh4n49ps"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(;; XXX: check requirements_test.txt to see whether these special
+       ;; versions are still needed when updating.
+       ("python-coverage" ,python-coverage-4.3)
+       ("python-pytest" ,python-pytest-3.2)
+       ("python-pytest-cov" ,python-pytest-cov-2.5)))
+    (home-page "https://gunicorn.org/")
+    (synopsis "Python WSGI erver")
+    (description
+     "Gunicorn ('Green Unicorn') is a Python WSGI HTTP Server.  It is a
+pre-fork worker model ported from Ruby's Unicorn project.  The Gunicorn
+server is broadly compatible with various web frameworks, simply implemented,
+light on server resource usage, and fairly speedy.")
+    (license license:expat)))
+
 (define-public python-html5lib
   (package
     (name "python-html5lib")
-- 
2.22.1

  reply	other threads:[~2019-08-30 14:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-30 14:23 [bug#37234] [PATCH 00/21] MLflow Marius Bakke
2019-08-30 14:25 ` Marius Bakke [this message]
2019-08-30 14:25   ` [bug#37234] [PATCH 02/21] gnu: Add python-databricks-cli Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 03/21] gnu: Add python-gorilla Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 04/21] gnu: Add python-querystring-parser Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 05/21] gnu: Add python-minio Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 06/21] gnu: python-docker-py: Propagate runtime dependency Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 07/21] gnu: python-botocore: Update to 1.12.209 Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 08/21] gnu: Add python-boto3 Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 09/21] gnu: python-botocore: Remove unused inputs Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 10/21] gnu: Add python-sshpubkeys Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 11/21] gnu: Add python-jsonpickle Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 12/21] gnu: Add python-pytest-aiohttp Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 13/21] gnu: Add python-aws-xray-sdk Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 14/21] gnu: Add python-jsondiff Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 15/21] gnu: Add python-jose Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 16/21] gnu: Add python-boto Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 17/21] gnu: Add python-aws-sam-translator Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 18/21] gnu: Add python-cfn-lint Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 19/21] gnu: python-pyyaml: Add version 5.1 Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 20/21] gnu: Add python-moto Marius Bakke
2019-08-30 14:25   ` [bug#37234] [PATCH 21/21] gnu: Add mlflow Marius Bakke
2019-09-04 12:18 ` [bug#37234] [PATCH 00/21] MLflow Ludovic Courtès
2020-11-21  0:27   ` bug#37234: " Marius Bakke
2020-11-21 14:15     ` [bug#37234] " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190830142539.28376-1-mbakke@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=37234@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).