unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@we.make.ritual.n0.is>
To: guix-devel@gnu.org
Subject: [PATCH 09/11] gnu: Add python-pytest-httpbin.
Date: Tue, 13 Sep 2016 01:38:25 +0000	[thread overview]
Message-ID: <20160913013827.25877-9-ng0@we.make.ritual.n0.is> (raw)
In-Reply-To: <20160913013827.25877-1-ng0@we.make.ritual.n0.is>

* gnu/packages/python.scm (python-pytest-httpbin): New variable.
---
 gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c4e2a58..fdf5ec8 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1714,6 +1714,41 @@ supports coverage of subprocesses.")
       (inputs `(("python2-setuptools" ,python2-setuptools)
                 ,@(package-inputs base))))))
 
+(define-public python-pytest-httpbin
+  (package
+    (name "python-pytest-httpbin")
+    (version "0.2.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest-httpbin" version))
+       (sha256
+        (base32
+         "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-flask" ,python-flask)
+       ("python-decorator" ,python-decorator)
+       ("python-httpbin" ,python-httpbin)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/kevin1024/pytest-httpbin")
+    (synopsis "Test your HTTP library against a local copy of httpbin")
+    (description
+     "Pytest-httpbin creates a pytest fixture that is dependency-injected
+into your tests.  It automatically starts up a HTTP server in a separate
+thread running httpbin and provides your test with the URL in the fixture.")
+    (license license:expat)))
+
+(define-public python2-pytest-httpbin
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-pytest-httpbin)))
+    (inputs `(("python2-setuptools" ,python2-setuptools)
+              ("python2-flask" ,python2-flask)
+              ("python2-decorator" ,python2-decorator)
+              ("python2-httpbin" ,python2-httpbin)
+              ("python2-six" ,python2-six)))))
+
 (define-public python-pytest-runner
   (package
     (name "python-pytest-runner")
-- 
2.10.0

  parent reply	other threads:[~2016-09-13  1:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  1:38 [PATCH 01/11] gnu: python-certifi: Update to 2016.8.31 ng0
2016-09-13  1:38 ` [PATCH 02/11] gnu: python-dateutil-2: Update to 2.5.3 ng0
2016-09-25 18:06   ` Leo Famulari
2016-09-13  1:38 ` [PATCH 03/11] gnu: Add python-flask-babel ng0
2016-09-25 18:05   ` Leo Famulari
2016-09-13  1:38 ` [PATCH 04/11] gnu: python-ndg-httpsclient: Update to 0.4.2 ng0
2016-09-25 18:05   ` Leo Famulari
2016-09-13  1:38 ` [PATCH 05/11] gnu: python-pyasn1: Update to 0.1.9 ng0
2016-09-25 18:05   ` Leo Famulari
2016-09-13  1:38 ` [PATCH 06/11] gnu: python-pygments: Update to 2.1.3 ng0
2016-09-25 18:03   ` Leo Famulari
2016-09-13  1:38 ` [PATCH 07/11] gnu: Add python-gunicorn ng0
2016-09-13 12:35   ` Hartmut Goebel
2016-09-24 22:23     ` ng0
2016-09-25 18:18       ` Hartmut Goebel
2016-09-25 18:23         ` Hartmut Goebel
2016-09-13  1:38 ` [PATCH 08/11] gnu: Add python-httpbin ng0
2016-09-25 18:06   ` Leo Famulari
2016-09-13  1:38 ` ng0 [this message]
2016-09-25 18:06   ` [PATCH 09/11] gnu: Add python-pytest-httpbin Leo Famulari
2016-09-13  1:38 ` [PATCH 10/11] gnu: Add python-pysocks ng0
2016-09-25 18:05   ` Leo Famulari
2016-09-13  1:38 ` [PATCH 11/11] gnu: Add python-pytest-httpbin-0.0.7 ng0
2016-09-13  1:43   ` ng0
2016-09-25 18:08     ` Leo Famulari
2016-09-25 18:07   ` Leo Famulari
2016-09-25 18:03 ` [PATCH 01/11] gnu: python-certifi: Update to 2016.8.31 Leo Famulari

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=20160913013827.25877-9-ng0@we.make.ritual.n0.is \
    --to=ng0@we.make.ritual.n0.is \
    --cc=guix-devel@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).