diff options
| author | Vinicius Monego <monego@posteo.net> | 2025-06-28 00:51:07 -0300 |
|---|---|---|
| committer | Vinicius Monego <monego@posteo.net> | 2025-06-29 00:04:44 -0300 |
| commit | 5966e0ef226f6596009eb77ad5488fdaa8a6ebb0 (patch) | |
| tree | 5a8e99fce293392c3ab9a6f3e49ebaf45923f1e1 /gnu/packages/python-xyz.scm | |
| parent | a6c21cd8c0b442c1d2ebb6c099a0c0bc103bd97b (diff) | |
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 43242e2cee..a1a5073f70 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17853,21 +17853,11 @@ your package is installed, via @code{pkg_resources} (part of (uri (pypi-uri "filetype" version)) (sha256 (base32 "1nxa91szfbhhbhvdwj06jz8zghzwgb9lf0v6aj61vx2b8zb6rdb6")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (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)) + (build-system pyproject-build-system) + (native-inputs (list python-pytest + python-pytest-benchmark + python-setuptools + python-wheel)) (home-page "https://github.com/h2non/filetype.py") (synopsis "Infer file type and MIME type of any file/buffer") (description "@code{filetype} is a small and dependency free Python |
