me
/
guix
Archived
1
0
Fork 0

gnu: python-pytest-runner: Update to 6.0.0.

* gnu/packages/check.scm (python-pytest-runner): Update to 6.0.0.
master
Marius Bakke 2022-09-18 02:20:49 +02:00
parent 9e256a05f2
commit 44d37eaae1
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 24 additions and 13 deletions

View File

@ -1210,28 +1210,39 @@ Python's @code{random.seed}.")
(define-public python-pytest-runner (define-public python-pytest-runner
(package (package
(name "python-pytest-runner") (name "python-pytest-runner")
(version "5.2") (version "6.0.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pytest-runner" version)) (uri (pypi-uri "pytest-runner" version))
(sha256 (sha256
(base32 (base32
"0awll1bva5zy8cspsxcpv7pjcrdf5c6pf56nqn4f74vvmlzfgiwn")))) "11dnhxnjmh4nf1j8rnvx944ha3wg8ggrgrwdcx4c7d19xmi57n5l"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(;; FIXME: The test suite requires 'python-flake8' and 'python-black', (list
;; but that introduces a circular dependency. ;; FIXME: The test suite requires 'python-flake8' and 'python-black',
#:tests? #f ;; but that introduces a circular dependency.
#:phases (modify-phases %standard-phases #:tests? #f
(replace 'check #:phases
(lambda* (#:key tests? #:allow-other-keys) #~(modify-phases %standard-phases
(if tests? (replace 'build
(invoke "pytest" "-vv") (lambda _
(format #t "test suite not run~%")) (let ((circa-1980 (* 10 366 24 60 60)))
#t))))) (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 (native-inputs
(list python-setuptools-scm)) (list python-pypa-build python-setuptools-scm python-wheel))
(home-page "https://github.com/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