gnu: python-filetype: Use pyproject-build-system.

* gnu/packages/python-xyz.scm (python-filetype)[build-system]: Use
pyproject-build-system.
[arguments]<#:phases>: Do not override the 'check' phase and enable
previously failing tests.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: I0490afc30a0ec4b8263b9d201a2043f9e493c260
This commit is contained in:
Vinicius Monego 2025-06-28 00:51:07 -03:00
parent a6c21cd8c0
commit 5966e0ef22
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -17853,21 +17853,11 @@ your package is installed, via @code{pkg_resources} (part of
(uri (pypi-uri "filetype" version)) (uri (pypi-uri "filetype" version))
(sha256 (sha256
(base32 "1nxa91szfbhhbhvdwj06jz8zghzwgb9lf0v6aj61vx2b8zb6rdb6")))) (base32 "1nxa91szfbhhbhvdwj06jz8zghzwgb9lf0v6aj61vx2b8zb6rdb6"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (native-inputs (list python-pytest
`(#:phases python-pytest-benchmark
(modify-phases %standard-phases python-setuptools
(replace 'check python-wheel))
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-k"
(string-append
;; Both tests fail with FileNotFoundError.
"not test_infer_zip_from_disk"
" and not test_infer_tar_from_disk"))))))))
(native-inputs
(list python-pytest python-pytest-benchmark))
(home-page "https://github.com/h2non/filetype.py") (home-page "https://github.com/h2non/filetype.py")
(synopsis "Infer file type and MIME type of any file/buffer") (synopsis "Infer file type and MIME type of any file/buffer")
(description "@code{filetype} is a small and dependency free Python (description "@code{filetype} is a small and dependency free Python