From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: [PATCH 08/16] gnu: Add python-pytest-django. Date: Sun, 11 Sep 2016 21:58:49 +0300 Message-ID: <20160911185857.2123-9-efraim@flashner.co.il> References: <20160911185857.2123-1-efraim@flashner.co.il> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yI-00035Q-FN for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj9yG-0008BH-Sb for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:18 -0400 Received: from flashner.co.il ([178.62.234.194]:52862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yG-00088P-LV for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:16 -0400 Received: from localhost (85.64.232.168.dynamic.barak-online.net [85.64.232.168]) by flashner.co.il (Postfix) with ESMTPSA id 43F394039C for ; Sun, 11 Sep 2016 18:59:09 +0000 (UTC) In-Reply-To: <20160911185857.2123-1-efraim@flashner.co.il> 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-django): New variable. --- gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 91d82aa..36b96f6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1722,6 +1722,46 @@ same arguments.") `(("python2-mock" ,python2-mock) ,@(package-inputs base)))))) +(define-public python-pytest-django + (package + (name "python-pytest-django") + (version "2.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-django" version)) + (sha256 + (base32 + "1mmc7zsz3dlhs6sx4sppkj1vgshabi362r1a8b8wpj1qfximpqcb")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-setuppy + (lambda _ + (substitute* "setup.py" + (("setuptools_scm==1.8.0") "setuptools_scm")) + #t))))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (inputs + `(("python-py" ,python-py) + ("python-pytest" ,python-pytest))) + (home-page "http://pytest-django.readthedocs.org/") + (synopsis "Django plugin for py.test") + (description "Pytest-django is a plugin for py.test that provides a set of +useful tools for testing Django applications and projects.") + (properties `((python2-variant . ,(delay python2-pytest-django)))) + (license license:bsd-3))) + +(define-public python2-pytest-django + (let ((base (package-with-python2 + (strip-python2-variant python-pytest-django)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) + (define-public python-pytest-xdist (package (name "python-pytest-xdist") -- 2.10.0