gnu: python-tinycss: Move to pyproject-build-system.

* gnu/packages/python-web.scm (python-tinycss):
  [build-system]: Move to pyproject-build-system.
  [arguments]<#:test-flags>: Ignore failing test.

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

View file

@ -6223,20 +6223,10 @@ the non-map-specific features. It can be used to generate HTML + JS.")
(uri (pypi-uri "tinycss" version)) (uri (pypi-uri "tinycss" version))
(sha256 (sha256
(base32 "0vkifr595h28ymkjhrswwf0bm23lhznh5f44xyp7x7jy1ssnyc0j")))) (base32 "0vkifr595h28ymkjhrswwf0bm23lhznh5f44xyp7x7jy1ssnyc0j"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list #:test-flags
(modify-phases %standard-phases '(list "-k" "not test_speedups")))
(add-after 'unpack 'disable-flake8-isort
;; Flake8 and isort tests fail.
(lambda _
(substitute* "setup.cfg" ((" --flake8 --isort") ""))
#t))
(replace 'check
(lambda _
;; Disable failing test.
(invoke "python" "-m" "pytest" "-k"
"not test_speedups"))))))
(native-inputs (native-inputs
(list python-pytest-cov python-pytest-flake8 python-pytest-isort (list python-pytest-cov python-pytest-flake8 python-pytest-isort
python-pytest-runner)) python-pytest-runner))