From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 08/17] gnu: Add python-pytest-localserver. Date: Sun, 3 Jan 2016 19:05:06 -0500 Message-ID: <027eaaf7f6bb06c298bbe469fcc502d22a903d38.1451865663.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFseL-0005Z3-Dc for guix-devel@gnu.org; Sun, 03 Jan 2016 19:05:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFseH-000626-8Y for guix-devel@gnu.org; Sun, 03 Jan 2016 19:05:25 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFseH-00061I-5o for guix-devel@gnu.org; Sun, 03 Jan 2016 19:05:21 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 1C03CC016DA for ; Sun, 3 Jan 2016 19:05:20 -0500 (EST) In-Reply-To: In-Reply-To: References: 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-pytest-localserver): New variable. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2cfdcaf..0dfebf2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6762,3 +6762,35 @@ minimal and fast API targetting the following uses: the last py.test invocation.") (home-page "https://bitbucket.org/hpk42/pytest-cache/") (license license:expat))) + +(define-public python-pytest-localserver + (package + (name "python-pytest-localserver") + (version "0.3.4") + (source (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/p" + "/pytest-localserver/pytest-localserver-" + version ".zip")) + (sha256 + (base32 + "050q505a7gnsz7vqidw0w5dvxjb2flzi7z734agpjzmsl85c2bcx")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "py.test" "--genscript=runtests.py")) + (zero? (system* "py.test"))))))) + (native-inputs + `(("unzip" ,unzip))) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-requests" ,python-requests) + ("python-six" ,python-six) + ("python-werkzeug" ,python-werkzeug))) + (synopsis "Py.test plugin to test server connections locally") + (description "Pytest-localserver is a plugin for the pytest testing +framework which enables you to test server connections locally.") + (home-page "https://pypi.python.org/pypi/pytest-localserver") + (license license:expat))) -- 2.6.4