guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/11] gnu: Add python-pytest-httpbin.


From: ng0
Subject: [PATCH 09/11] gnu: Add python-pytest-httpbin.
Date: Tue, 13 Sep 2016 01:38:25 +0000

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]