gnu: python-pytest-runner: Define python2-pytest-runner.
* gnu/packages/python.scm (python-pytest-runner)[properties]: Define python2-pytest-runner. [native-inputs]: Remove python-setuptools. [home-page]: Project has moved to Github. (python2-pytest-runner)[native-inputs]: Add python2-setuptools.
This commit is contained in:
parent
545f4a1c3c
commit
54cd239b35
1 changed files with 12 additions and 6 deletions
|
@ -1597,9 +1597,7 @@ supports coverage of subprocesses.")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
(uri (pypi-uri "pytest-runner" version))
|
||||||
"pytest-runner/pytest-runner-"
|
|
||||||
version ".tar.gz"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
|
"1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
|
||||||
|
@ -1617,14 +1615,22 @@ supports coverage of subprocesses.")
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)
|
`(("python-pytest" ,python-pytest)
|
||||||
("python-setuptools" ,python-setuptools)
|
|
||||||
("python-setuptools-scm" ,python-setuptools-scm)))
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
||||||
(home-page "https://bitbucket.org/pytest-dev/pytest-runner")
|
(home-page "https://github.com/pytest-dev/pytest-runner")
|
||||||
(synopsis "Invoke py.test as a distutils command")
|
(synopsis "Invoke py.test as a distutils command")
|
||||||
(description
|
(description
|
||||||
"This package provides a @command{pytest-runner} command that
|
"This package provides a @command{pytest-runner} command that
|
||||||
@file{setup.py} files can use to run tests.")
|
@file{setup.py} files can use to run tests.")
|
||||||
(license license:expat)))
|
(license license:expat)
|
||||||
|
(properties `((python2-variant . ,(delay python2-pytest-runner))))))
|
||||||
|
|
||||||
|
(define-public python2-pytest-runner
|
||||||
|
(let ((base (package-with-python2
|
||||||
|
(strip-python2-variant python-pytest-runner))))
|
||||||
|
(package
|
||||||
|
(inherit base)
|
||||||
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
||||||
|
,@(package-native-inputs base))))))
|
||||||
|
|
||||||
(define-public python2-pytest-runner
|
(define-public python2-pytest-runner
|
||||||
(package-with-python2 python-pytest-runner))
|
(package-with-python2 python-pytest-runner))
|
||||||
|
|
Reference in a new issue