diff options
author | Marius Bakke <marius@gnu.org> | 2022-09-18 02:20:49 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-09-18 10:35:38 +0200 |
commit | 44d37eaae1d883b71e45c487ba0445f7cd3fa299 (patch) | |
tree | 8339a9a0f12057cd0018370d46cd88886ee79669 | |
parent | 9e256a05f240a8fb28ceaf8095edc07c9465c0f6 (diff) | |
download | guix-44d37eaae1d883b71e45c487ba0445f7cd3fa299.tar.gz |
gnu: python-pytest-runner: Update to 6.0.0.
* gnu/packages/check.scm (python-pytest-runner): Update to 6.0.0.
-rw-r--r-- | gnu/packages/check.scm | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index bdd7ad1f3e..794a3f4c22 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1210,28 +1210,39 @@ Python's @code{random.seed}.") (define-public python-pytest-runner (package (name "python-pytest-runner") - (version "5.2") + (version "6.0.0") (source (origin (method url-fetch) (uri (pypi-uri "pytest-runner" version)) (sha256 (base32 - "0awll1bva5zy8cspsxcpv7pjcrdf5c6pf56nqn4f74vvmlzfgiwn")))) + "11dnhxnjmh4nf1j8rnvx944ha3wg8ggrgrwdcx4c7d19xmi57n5l")))) (build-system python-build-system) (arguments - '(;; FIXME: The test suite requires 'python-flake8' and 'python-black', - ;; but that introduces a circular dependency. - #:tests? #f - #:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (if tests? - (invoke "pytest" "-vv") - (format #t "test suite not run~%")) - #t))))) + (list + ;; FIXME: The test suite requires 'python-flake8' and 'python-black', + ;; but that introduces a circular dependency. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (let ((circa-1980 (* 10 366 24 60 60))) + (setenv "SOURCE_DATE_EPOCH" (number->string circa-1980)) + (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "pytest" "-vv") + (format #t "test suite not run~%"))))))) (native-inputs - (list python-setuptools-scm)) + (list python-pypa-build python-setuptools-scm python-wheel)) (home-page "https://github.com/pytest-dev/pytest-runner") (synopsis "Invoke py.test as a distutils command") (description |