From: ng0 <n...@libertad.pw> * gnu/packages/python.scm (python-pytest-httpbin): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5b4d2b09c..e8d1c5697 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1946,6 +1946,35 @@ result back.") (define-public python2-pytest-xdist (package-with-python2 python-pytest-xdist)) +(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) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-decorator" ,python-decorator) + ("python-httpbin" ,python-httpbin) + ("python-pytest" ,python-pytest) + ("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-with-python2 python-pytest-httpbin)) + (define-public python-scripttest (package (name "python-scripttest") -- 2.11.0