~ruther/guix-local

31eb603647c48128570442cb9a2e42eb468a0123 — Nicolas Graves 1 year, 5 months ago 5a13bc7
gnu: python-pytest-runner: Update to 6.0.1.

* gnu/packages/check.scm (python-pytest-runner): Update to 6.0.1.
[arguments]: Remove {phases}.
[native-inputs]: Remove python-pip, python-pypa-build. Add
python-pytest-checkdocs, python-pytest-enabler,
python-types-setuptools.
1 files changed, 11 insertions(+), 17 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +11 -17
@@ 1987,35 1987,29 @@ Python's @code{random.seed}.")
(define-public python-pytest-runner
  (package
    (name "python-pytest-runner")
    (version "6.0.0")
    (version "6.0.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pytest-runner" version))
       (sha256
        (base32
         "11dnhxnjmh4nf1j8rnvx944ha3wg8ggrgrwdcx4c7d19xmi57n5l"))))
         "16zly218ij0n6fxzqsasia3vh9xkzl9w0cs9pwvqy057hnap7m3h"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      ;; FIXME: The test suite requires 'python-pytest-virtualenv',
      ;; 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)))))))
      #:tests? #f))
    (native-inputs
     (list python-pip python-pypa-build python-pytest
           python-setuptools python-setuptools-scm python-wheel))
     (list python-pytest
           python-pytest-checkdocs
           python-pytest-enabler
           ;; python-pytest-virtualenv
           python-setuptools
           python-setuptools-scm
           python-types-setuptools
           python-wheel))
    (home-page "https://github.com/pytest-dev/pytest-runner")
    (synopsis "Invoke py.test as a distutils command")
    (description