[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: Add python-pytest-runner.
From: |
Ricardo Wurmus |
Subject: |
03/08: gnu: Add python-pytest-runner. |
Date: |
Mon, 12 Oct 2015 14:08:37 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit 6784f2e3fe744c7b67130f9136ec769e7b05f59f
Author: Ricardo Wurmus <address@hidden>
Date: Wed Sep 23 12:46:24 2015 +0200
gnu: Add python-pytest-runner.
* gnu/packages/python.scm (python-pytest-runner, python2-pytest-runner):
New variables.
---
gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index bf21e9a..307b888 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1549,6 +1549,44 @@ and many external plugins.")
(define-public python2-pytest
(package-with-python2 python-pytest))
+(define-public python-pytest-runner
+ (package
+ (name "python-pytest-runner")
+ (version "2.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://pypi.python.org/packages/source/p/"
+ "pytest-runner/pytest-runner-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; The fancy way of setting the version with setuptools_scm does not
+ ;; seem to work here.
+ (add-after 'unpack 'set-version
+ (lambda _
+ (substitute* "docs/conf.py"
+ (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
+ (string-append "version = \"" ,version "\"")))
+ #t)))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://bitbucket.org/pytest-dev/pytest-runner")
+ (synopsis "Invoke py.test as a distutils command")
+ (description
+ "This package provides a @command{pytest-runner} command that
address@hidden files can use to run tests.")
+ (license license:expat)))
+
+(define-public python2-pytest-runner
+ (package-with-python2 python-pytest-runner))
+
(define-public python-scripttest
(package
(name "python-scripttest")
- branch master updated (db94f8c -> 2b10eb4), Ricardo Wurmus, 2015/10/15
- 07/08: gnu: Add python-ipython-genutils., Ricardo Wurmus, 2015/10/12
- 05/08: gnu: Add python-pickleshare., Ricardo Wurmus, 2015/10/12
- 01/08: gnu: Add python-pexpect., Ricardo Wurmus, 2015/10/12
- 08/08: gnu: Add python-traitlets., Ricardo Wurmus, 2015/10/12
- 02/08: gnu: Add python-setuptools-scm., Ricardo Wurmus, 2015/10/12
- 04/08: gnu: Add python-pathpy., Ricardo Wurmus, 2015/10/12
- 03/08: gnu: Add python-pytest-runner.,
Ricardo Wurmus <=
- 06/08: gnu: Add python-simplegeneric., Ricardo Wurmus, 2015/10/12