From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 4/9] gnu: Add python-pytest-httpbin. Date: Sat, 4 Feb 2017 16:35:01 +0000 Message-ID: <20170204163506.16758-5-contact.ng0@cryptolab.net> References: <20170204163506.16758-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca3JA-0005Ug-W7 for guix-devel@gnu.org; Sat, 04 Feb 2017 11:35:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca3J6-0007uO-3P for guix-devel@gnu.org; Sat, 04 Feb 2017 11:35:28 -0500 Received: from aibo.runbox.com ([91.220.196.211]:49792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ca3J5-0007tt-T5 for guix-devel@gnu.org; Sat, 04 Feb 2017 11:35:24 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ca3J4-0002f9-LX for guix-devel@gnu.org; Sat, 04 Feb 2017 17:35:22 +0100 In-Reply-To: <20170204163506.16758-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * 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