summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-15 10:12:33 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:52 +0100
commit15fb90edc91809379f856025a7ec00f08b3242f4 (patch)
treefe3832767fcab0d85fcef377036f338bfe92aa97 /gnu
parentccd86b711f41a10f40b2af1d9c804876be7f04a2 (diff)
gnu: python-binaryornot: Switch to pyproejct-build-system.
* gnu/packages/python-xyz.scm (python-binaryornot): [build-system]: Use pyproejct. [arguments] <test-backend>: Use custom unittest. <phases>: Remove trailing #t from lambdas. [propagated-inputs]: Remove python-hypothesis. [native-inputs]: Add python-hypothesis and python-setuptools. Change-Id: Ic6e24e1bbfae846bc9b0ab9195556fcf86af9c25
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm39
1 files changed, 22 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 190bf75452c..1c681980d4e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24613,25 +24613,30 @@ pytest-fixtures-style dependency injection.")
(package
(name "python-binaryornot")
(version "0.4.4")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "binaryornot" version))
- (sha256
- (base32
- "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "binaryornot" version))
+ (sha256
+ (base32 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-tests
- (lambda _
- ;; TypeError: binary() got an unexpected keyword argument
- ;; 'average_size'.
- (substitute* "tests/test_check.py"
- (("average_size=512") ""))
- #t)))))
+ (list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; TypeError: binary() got an unexpected keyword argument
+ ;; 'average_size'.
+ (substitute* "tests/test_check.py"
+ (("average_size=512") "")))))))
+ (native-inputs
+ (list python-hypothesis
+ python-setuptools))
(propagated-inputs
- (list python-chardet python-hypothesis))
+ (list python-chardet))
(home-page "https://github.com/audreyr/binaryornot")
(synopsis "Package to check if a file is binary or text")
(description "Ultra-lightweight pure Python package to check if a file is