~ruther/guix-local

ebbf589bef08920cb47d471b0c5e6f0c0e40d0bb — Sharlatan Hellseher 8 months ago 35f7c54
gnu: python-pytest-randomly: Update to 3.16.0.

* gnu/packages/check.scm (python-pytest-randomly): Update to 3.16.0.
  [build-system]: Use pyproject.
  [arguments] <test-flags>: Utilize it.
  <phases>: Use default 'check.
  [propagated-inputs]: Remove python-importlib-metadata and python-pytest.
  [native-inputs]: Remove python-coverage; add python-pytest-bootstrap
  and python-setuptools.

Change-Id: I9b66590bdc37f5b8bf857a8aeb640755f994d4f8
1 files changed, 16 insertions(+), 22 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +16 -22
@@ 1990,7 1990,7 @@ reported in a previous test run.")
(define-public python-pytest-randomly
  (package
    (name "python-pytest-randomly")
    (version "3.11.0")
    (version "3.16.0")
    (source (origin
              (method git-fetch)        ;no tests in pypi archive
              (uri (git-reference


@@ 1999,29 1999,23 @@ reported in a previous test run.")
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1sjgq49g8f8973vhmzrim79b6wz29a765n99azjk1maimqh7mmik"))))
    (build-system python-build-system)
                "1ai6gn811wm1ixjimgpsi5nwlcpxaj4kmil69vf2s2ph0c2zw93s"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                ;; The tests validating ordering fail, as well as as two
                ;; others, for unknown reasons (see:
                ;; https://github.com/pytest-dev/pytest-randomly/issues/454).
                (invoke "pytest" "-vv" "-k"
                        (string-append
                         "not reordered "
                         "and not test_it_runs_before_stepwise "
                         "and not test_entrypoint_injection"))))))))
    (native-inputs (list python-coverage
                         python-factory-boy
                         python-faker
                         python-numpy
                         python-pytest-xdist))
    (propagated-inputs (list python-importlib-metadata python-pytest))
      #:test-flags
      #~(list "-p" "no:randomly"
              ;; The tests validating ordering fail, as well as as two others,
              ;; for unknown reasons (see:
              ;; https://github.com/pytest-dev/pytest-randomly/issues/454).
              "-k" "not test_it_runs_before_stepwise and not test_model_bakery")))
    (native-inputs
     (list python-factory-boy
           python-faker
           python-numpy
           python-pytest-bootstrap
           python-pytest-xdist
           python-setuptools))
    (home-page "https://github.com/pytest-dev/pytest-randomly")
    (synopsis "Pytest plugin to randomly order tests")
    (description "This is a Pytest plugin to randomly order tests and control