From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 09/11] gnu: Add python-pytest-httpbin. Date: Tue, 13 Sep 2016 01:38:25 +0000 Message-ID: <20160913013827.25877-9-ng0@we.make.ritual.n0.is> References: <20160913013827.25877-1-ng0@we.make.ritual.n0.is> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjcgd-00012S-Sl for guix-devel@gnu.org; Mon, 12 Sep 2016 21:39:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjcgb-0000nE-WD for guix-devel@gnu.org; Mon, 12 Sep 2016 21:38:59 -0400 Received: from aibo.runbox.com ([91.220.196.211]:37107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjcgb-0000mz-Pe for guix-devel@gnu.org; Mon, 12 Sep 2016 21:38:57 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bjcgb-0001M6-5f for guix-devel@gnu.org; Tue, 13 Sep 2016 03:38:57 +0200 In-Reply-To: <20160913013827.25877-1-ng0@we.make.ritual.n0.is> 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 * 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