gnu: python-jaraco-functools: Move to pyproject-build-system.

* gnu/packages/python-xyz.scm:
  (python-jaraco-functools-bootstrap)[build-system]: Move to
  pyproject-build-system.
  (python-jaraco-functools)[arguments]: Convert <#:phases> to
  <#:test-flags>.

Change-Id: Id41967b3cb426045877ceccd9b391d545d759560
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Nicolas Graves 2024-05-10 00:53:50 +02:00 committed by Sharlatan Hellseher
parent 68ecdc47b2
commit dd5c8085dd
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -12264,7 +12264,7 @@ procedures.")
(uri (pypi-uri "jaraco.functools" version)) (uri (pypi-uri "jaraco.functools" version))
(sha256 (sha256
(base32 "186xqzs3bqhjwajnprxy3sc3h0w5vdld8spc1dxjnn9720yykq1i")))) (base32 "186xqzs3bqhjwajnprxy3sc3h0w5vdld8spc1dxjnn9720yykq1i"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (list #:tests? #f)) (arguments (list #:tests? #f))
(native-inputs (list python-setuptools-scm)) (native-inputs (list python-setuptools-scm))
(propagated-inputs (list python-more-itertools)) (propagated-inputs (list python-more-itertools))
@ -12282,17 +12282,11 @@ module with a few extra procedures.")
(package-arguments python-jaraco-functools-bootstrap) (package-arguments python-jaraco-functools-bootstrap)
((#:tests? _ #f) ((#:tests? _ #f)
(not (%current-target-system))) (not (%current-target-system)))
((#:phases phases #~%standard-phases) ;; Do not test the myproject.toml build as it pulls dependencies.
#~(modify-phases #$phases ;; Do not run a test that tries to emulate a broken proprietary CI
(replace 'check ;; set-up, fails to do so correctly, and then throws an error.
(lambda* (#:key tests? #:allow-other-keys) ((#:test-flags test-flags '())
(when tests? '(list "-k" "not project and not test_function_throttled"))))
;; Do not test the myproject.toml build as it tries to pull
;; dependencies from the Internet. Do not run a test that
;; tries to emulate a broken proprietary CI set-up, fails
;; to do so correctly, and then throws an error about it.
(invoke "pytest" "-vv" "-k"
"not project and not test_function_throttled"))))))))
(native-inputs (native-inputs
(modify-inputs (modify-inputs
(package-native-inputs python-jaraco-functools-bootstrap) (package-native-inputs python-jaraco-functools-bootstrap)