[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/16: gnu: Add python-pytest-django.
From: |
Efraim Flashner |
Subject: |
08/16: gnu: Add python-pytest-django. |
Date: |
Sun, 18 Sep 2016 20:19:59 +0000 (UTC) |
efraim pushed a commit to branch master
in repository guix.
commit 23b563dcfdc269b51c4bb671d9ba226c8f70e6a3
Author: Efraim Flashner <address@hidden>
Date: Sun Sep 11 21:30:55 2016 +0300
gnu: Add python-pytest-django.
* gnu/packages/django.scm (python-pytest-django): New variable.
---
gnu/packages/django.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index b9232e2..bd39314 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Hartmut Goebel <address@hidden>
+;;; Copyright © 2016 Efraim Flashner <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -122,3 +123,42 @@ with arguments to the field constructor.")
(define-public python2-django-simple-math-captcha
(package-with-python2 python-django-simple-math-captcha))
+
+(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))))))
- 05/16: gnu: Add python-graphql-core., (continued)
- 05/16: gnu: Add python-graphql-core., Efraim Flashner, 2016/09/18
- 14/16: gnu: Add python-bcrypt., Efraim Flashner, 2016/09/18
- 01/16: gnu: Add python-pika., Efraim Flashner, 2016/09/18
- 09/16: gnu: Add python-django-filter., Efraim Flashner, 2016/09/18
- 02/16: gnu: Add python-peewee., Efraim Flashner, 2016/09/18
- 06/16: gnu: Add python-graphql-relay., Efraim Flashner, 2016/09/18
- 04/16: gnu: Add python-pytest-mock., Efraim Flashner, 2016/09/18
- 16/16: gnu: Add onionshare., Efraim Flashner, 2016/09/18
- 03/16: gnu: Add python-promise., Efraim Flashner, 2016/09/18
- 11/16: gnu: Add python-consul., Efraim Flashner, 2016/09/18
- 08/16: gnu: Add python-pytest-django.,
Efraim Flashner <=
- 13/16: gnu: Add python-nose2., Efraim Flashner, 2016/09/18
- 07/16: gnu: Add python-sqlalchemy-utils., Efraim Flashner, 2016/09/18
- 15/16: gnu: Add python-nautilus., Efraim Flashner, 2016/09/18
- 10/16: gnu: Add python-graphene., Efraim Flashner, 2016/09/18
- 12/16: gnu: Add python-cov-core., Efraim Flashner, 2016/09/18