guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 6e38ea8c0aa521a9fc03fddf14db5e1b901aac7d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat May 30 08:24:41 2026 +0100
gnu: python-binaryornot: Update to 0.6.0.
* gnu/packages/python-xyz.scm (python-binaryornot): Update to 0.6.0.
[source]: Switch to git-fetch.
[arguments] <test-flags>: Skip test requiring uv in scope.
[phases]{patch-tests}: Remove phase.
[propagated-inputs]: Remove python-chardet.
[native-inputs]: Remove python-hypothesis and python-setuptools; add
python-hatchling and python-pytest.
Change-Id: If8825690e943060ec0fb02a93416998a0d697325
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 02813b6aa2..844d2f6a9b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24078,31 +24078,27 @@ pytest-fixtures-style dependency injection.")
(define-public python-binaryornot
(package
(name "python-binaryornot")
- (version "0.4.4")
+ (version "0.6.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "binaryornot" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/audreyr/binaryornot")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
+ (base32 "008r45bbhax8flcc0cp5fm2p9niclf0kg773s2y2p1x1j5qjx1jb"))))
(build-system pyproject-build-system)
(arguments
(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") "")))))))
+ #:test-flags
+ ;; FileNotFoundError: [Errno 2] No such file or directory: 'uv'
+ #~(list (string-append "--deselect=tests/test_sdist.py"
+ "::TestSdistContents"
+ "::test_sdist_includes_pyc_fixtures"))))
(native-inputs
- (list python-hypothesis
- python-setuptools))
- (propagated-inputs
- (list python-chardet))
+ (list python-hatchling
+ python-pytest))
(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