~ruther/guix-local

06cb215d9d2d2c81b4bfa3f0cf34d925ef2fa6e3 — Sharlatan Hellseher 1 year, 6 months ago 7427ff4
gnu: python-pytest-random-order: Update to 1.1.1.

* gnu/packages/check.scm (python-pytest-random-order): Update to 1.1.1.
[build-system]: Swap to pyproject-build-system.
[arguments]<test-flags>: Disable some failing tests.
[native-inputs]: Add python-pytest-xdist, python-setuptools, python-py, and
python-wheel.

Change-Id: Iab4d940379f7995669f5ead9980bb8779c3266e4
1 files changed, 14 insertions(+), 8 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +14 -8
@@ 1868,20 1868,26 @@ decorators from external files.")
(define-public python-pytest-random-order
  (package
    (name "python-pytest-random-order")
    (version "1.0.4")
    (version "1.1.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pytest-random-order" version))
       (sha256
        (base32 "0lpzl218l04vjy4gckrbrcacc3w9xrjnvz64bf2i132c58s5j8bb"))))
    (build-system python-build-system)
        (base32 "104hww3b86jchk41kjhyycr541pd2dfgqkww6lx5y70z9z9xfwj4"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases (modify-phases %standard-phases
                  (replace 'check
                    (lambda* (#:key tests? #:allow-other-keys)
                      (when tests?
                        (invoke "python" "-m" "pytest" "--random-order")))))))
     (list
      #:test-flags
      ;; AttributeError: module 'py' has no attribute 'code'.
      #~(list "-k" (string-append "not test_it_works_with_actual_tests"
                                  " and not test_failed_first"
                                  " and not test_doctests"))))
    (native-inputs
     (list python-pytest-xdist
           python-setuptools
           python-py
           python-wheel))
    (propagated-inputs
     (list python-pytest))
    (home-page "https://github.com/jbasko/pytest-random-order")