gnu: python-tinycss2: Simplify.

* gnu/packages/python-web.scm (python-tinycss2)[build-system]: Use
pyproject-build-system.
[arguments]: Remove.
This commit is contained in:
Ricardo Wurmus 2023-04-27 09:11:05 +02:00
parent 0dc7f773fd
commit f196b3b7a5
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -5291,31 +5291,7 @@ (define-public python-tinycss2
(file-name (git-file-name name version))
(sha256
(base32 "0zyc48vbmczpqj7f3f0d7zb3bz29fyj50dg0m6bbwbr5i88kq3sq"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'build
(lambda _
;; A ZIP archive should be generated, but it fails with "ZIP does
;; not support timestamps before 1980". Luckily,
;; SOURCE_DATE_EPOCH is respected, which we set to some time in
;; 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "flit" "build")))
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(let ((out (assoc-ref outputs "out")))
(for-each (lambda (wheel)
(format #true wheel)
(invoke "python" "-m" "pip" "install"
wheel (string-append "--prefix=" out)))
(find-files "dist" "\\.whl$")))))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv"))))))
(build-system pyproject-build-system)
(propagated-inputs
(list python-webencodings))
(native-inputs