summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-06-25 12:03:12 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-26 16:24:58 +0200
commit21e2c559450ba2076b50a6a8158db22a6322f57c (patch)
treed1389a74329955895e78e062378071e866e244e4 /gnu/packages/python-check.scm
parent3b89476b709c788e90ad6600a850ab06998cfc70 (diff)
gnu: Add python-pytest-shutil.
* gnu/packages/python-check.scm (python-pytest-shutil): New variable.
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 95e10e63819..d3f85207323 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -151,3 +151,43 @@ of the project to ensure it renders properly.")
151 "This package provides a pytest plugin for efficiently checking PEP8 151 "This package provides a pytest plugin for efficiently checking PEP8
152compliance.") 152compliance.")
153 (license license:bsd-3))) 153 (license license:bsd-3)))
154
155(define-public python-pytest-shutil
156 (package
157 (name "python-pytest-shutil")
158 (version "1.7.0")
159 (source
160 (origin
161 (method url-fetch)
162 (uri (pypi-uri "pytest-shutil" version))
163 (sha256
164 (base32
165 "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq"))))
166 (build-system python-build-system)
167 (arguments
168 `(#:phases
169 (modify-phases %standard-phases
170 (add-after 'unpack 'patch-tests
171 (lambda _
172 (mkdir "/tmp/bin")
173 (substitute* "tests/integration/test_cmdline_integration.py"
174 (("dirname = '/bin'")
175 "dirname = '/tmp/bin'")
176 (("bindir = os.path.realpath\\('/bin'\\)")
177 "bindir = os.path.realpath('/tmp/bin')"))
178 #t)))))
179 (propagated-inputs
180 `(("python-contextlib2" ,python-contextlib2)
181 ("python-execnet" ,python-execnet)
182 ("python-pathpy" ,python-pathpy)
183 ("python-termcolor" ,python-termcolor)))
184 (native-inputs
185 `(("python-mock" ,python-mock)
186 ("python-pytest" ,python-pytest)
187 ("python-setuptools-git" ,python-setuptools-git)))
188 (home-page "https://github.com/manahl/pytest-plugins")
189 (synopsis "Assorted shell and environment tools for py.test")
190 (description
191 "This package provides assorted shell and environment tools for the
192py.test testing framework.")
193 (license license:expat)))