[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: Add python-pytest-subtesthack.
From: |
Leo Famulari |
Subject: |
03/04: gnu: Add python-pytest-subtesthack. |
Date: |
Tue, 02 Feb 2016 19:50:49 +0000 |
lfam pushed a commit to branch master
in repository guix.
commit 7517e73c7511afacacd49178ca84f0468e9beb2c
Author: Leo Famulari <address@hidden>
Date: Sat Jan 30 17:54:34 2016 -0500
gnu: Add python-pytest-subtesthack.
* gnu/packages/python.scm (python-pytest-subtesthack,
python2-pytest-subtesthack): New variables.
---
gnu/packages/python.scm | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 36d5700..48f65b5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -37,7 +37,8 @@
#:use-module ((guix licenses)
#:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11
x11-style
gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+
agpl3+
- isc mpl2.0 psfl public-domain x11-style zpl2.1))
+ isc mpl2.0 psfl public-domain unlicense x11-style
+ zpl2.1))
#:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages attr)
@@ -7469,3 +7470,31 @@ seamlessly into your existing Python unit testing work
flow.")
(define-public python2-hypothesis
(package-with-python2 python-hypothesis))
+
+(define-public python-pytest-subtesthack
+ (package
+ (name "python-pytest-subtesthack")
+ (version "0.1.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-subtesthack" version))
+ (sha256
+ (base32
+ "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(;; setuptools required for python-2 variant
+ ("python-setuptools" ,python-setuptools)))
+ (propagated-inputs
+ `(("python-pytest" ,python-pytest)))
+ (synopsis "Set-up and tear-down fixtures for unit tests")
+ (description "This plugin allows you to set up and tear down fixtures
within
+unit test functions that use @code{py.test}. This is useful for using
address@hidden inside py.test, as @command{hypothesis} will call the test
+function multiple times, without setting up or tearing down fixture state as is
+normally the case.")
+ (home-page "https://github.com/untitaker/pytest-subtesthack/")
+ (license unlicense)))
+
+(define-public python2-pytest-subtesthack
+ (package-with-python2 python-pytest-subtesthack))