unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: guix-devel@gnu.org
Subject: [PATCH 08/16] gnu: Add python-pytest-django.
Date: Sun, 11 Sep 2016 21:58:49 +0300	[thread overview]
Message-ID: <20160911185857.2123-9-efraim@flashner.co.il> (raw)
In-Reply-To: <20160911185857.2123-1-efraim@flashner.co.il>

* 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

  parent reply	other threads:[~2016-09-11 18:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-11 18:58 [PATCH 00/16] Add onionshare Efraim Flashner
2016-09-11 18:58 ` [PATCH 01/16] gnu: Add python-pika Efraim Flashner
2016-09-11 19:36   ` David Craven
2016-09-11 19:37     ` David Craven
2016-09-12  5:33       ` Efraim Flashner
2016-09-12 11:56         ` The ‘python2-variant’ property Ludovic Courtès
2016-09-11 18:58 ` [PATCH 02/16] gnu: Add python-peewee Efraim Flashner
2016-09-11 18:58 ` [PATCH 03/16] gnu: Add python-promise Efraim Flashner
2016-09-11 19:41   ` David Craven
2016-09-12  5:31     ` Efraim Flashner
2016-09-11 18:58 ` [PATCH 04/16] gnu: Add python-pytest-mock Efraim Flashner
2016-09-11 19:42   ` David Craven
2016-09-12  5:34     ` Efraim Flashner
2016-09-11 18:58 ` [PATCH 05/16] gnu: Add python-graphql-core Efraim Flashner
2016-09-11 18:58 ` [PATCH 06/16] gnu: Add python-graphql-relay Efraim Flashner
2016-09-11 19:38   ` David Craven
2016-09-11 18:58 ` [PATCH 07/16] gnu: Add python-sqlalchemy-utils Efraim Flashner
2016-09-11 18:58 ` Efraim Flashner [this message]
2016-09-11 18:58 ` [PATCH 09/16] gnu: Add python-django-filter Efraim Flashner
2016-09-11 18:58 ` [PATCH 10/16] gnu: Add python-graphene Efraim Flashner
2016-09-11 18:58 ` [PATCH 11/16] gnu: Add python-consul Efraim Flashner
2016-09-11 18:58 ` [PATCH 12/16] gnu: Add python-cov-core Efraim Flashner
2016-09-11 18:58 ` [PATCH 13/16] gnu: Add python-nose2 Efraim Flashner
2016-09-11 19:39   ` David Craven
2016-09-11 18:58 ` [PATCH 14/16] gnu: Add python-bcrypt Efraim Flashner
2016-09-11 18:58 ` [PATCH 15/16] gnu: Add python-nautilus Efraim Flashner
2016-09-11 18:58 ` [PATCH 16/16] gnu: Add onionshare Efraim Flashner
2016-09-11 19:00 ` [PATCH 00/16] " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160911185857.2123-9-efraim@flashner.co.il \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).