diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-07-30 19:59:12 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-10-19 00:16:50 +0200 |
commit | 92b2101a56c422f58ee1870466449609cc0e1ee2 (patch) | |
tree | 995d0eca7408b599a21d808ca978df91c124bd8a /gnu/packages | |
parent | 928da609b53e0fc177d9dc99d69b0cb884d021a3 (diff) | |
download | patches-92b2101a56c422f58ee1870466449609cc0e1ee2.tar patches-92b2101a56c422f58ee1870466449609cc0e1ee2.tar.gz |
gnu: python-pytest: Add a minimal variant for bootstrapping.
* gnu/packages/python.scm (python-pytest-bootstrap, python2-pytest-bootstrap):
New variables.
(python-six, python-hypothesis, python-pytest-runner,
python-mccabe)[native-inputs]: Use PYTHON-PYTEST-BOOTSTRAP instead of
PYTHON-PYTEST.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python.scm | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5ed2f91003..30b23c4ae2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1186,7 +1186,7 @@ password storage.") (zero? (system* "py.test" "-v"))))))) (native-inputs `(("python-py" ,python-py) - ("python-pytest" ,python-pytest))) + ("python-pytest" ,python-pytest-bootstrap))) (home-page "http://pypi.python.org/pypi/six/") (synopsis "Python 2 and 3 compatibility utilities") (description @@ -1969,6 +1969,16 @@ and many external plugins.") `(("python2-enum34" ,python2-enum34) ,@(package-native-inputs base)))))) +(define-public python-pytest-bootstrap + (package + (inherit python-pytest) + (name "python-pytest-bootstrap") + (native-inputs '()) + (arguments `(#:tests? #f)))) + +(define-public python2-pytest-bootstrap + (package-with-python2 python-pytest-bootstrap)) + (define-public python-pytest-cov (package (name "python-pytest-cov") @@ -2029,7 +2039,7 @@ supports coverage of subprocesses.") (string-append "version = \"" ,version "\""))) #t))))) (native-inputs - `(("python-pytest" ,python-pytest) + `(("python-pytest" ,python-pytest-bootstrap) ("python-setuptools-scm" ,python-setuptools-scm))) (home-page "https://github.com/pytest-dev/pytest-runner") (synopsis "Invoke py.test as a distutils command") @@ -7005,7 +7015,7 @@ PEP 8.") "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws")))) (build-system python-build-system) (native-inputs - `(("python-pytest" ,python-pytest) + `(("python-pytest" ,python-pytest-bootstrap) ("python-pytest-runner" ,python-pytest-runner))) (home-page "https://github.com/flintwork/mccabe") (synopsis "McCabe checker, plugin for flake8") @@ -10120,7 +10130,7 @@ Amazon Web Services (AWS) API.") (build-system python-build-system) (native-inputs `(("python-flake8" ,python-flake8) - ("python-pytest" ,python-pytest))) + ("python-pytest" ,python-pytest-bootstrap))) (synopsis "Library for property based testing") (description "Hypothesis is a library for testing your Python code against a much larger range of examples than you would ever want to write by hand. It’s |