mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
0c6009030c
commit
9014933432
1 changed files with 22 additions and 17 deletions
|
@ -24637,25 +24637,30 @@ pytest-fixtures-style dependency injection.")
|
||||||
(package
|
(package
|
||||||
(name "python-binaryornot")
|
(name "python-binaryornot")
|
||||||
(version "0.4.4")
|
(version "0.4.4")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (pypi-uri "binaryornot" version))
|
(method url-fetch)
|
||||||
(sha256
|
(uri (pypi-uri "binaryornot" version))
|
||||||
(base32
|
(sha256
|
||||||
"0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
|
(base32 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-backend #~'unittest
|
||||||
(add-after 'unpack 'patch-tests
|
#:test-flags #~(list "discover" "tests")
|
||||||
(lambda _
|
#:phases
|
||||||
;; TypeError: binary() got an unexpected keyword argument
|
#~(modify-phases %standard-phases
|
||||||
;; 'average_size'.
|
(add-after 'unpack 'patch-tests
|
||||||
(substitute* "tests/test_check.py"
|
(lambda _
|
||||||
(("average_size=512") ""))
|
;; TypeError: binary() got an unexpected keyword argument
|
||||||
#t)))))
|
;; 'average_size'.
|
||||||
|
(substitute* "tests/test_check.py"
|
||||||
|
(("average_size=512") "")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-hypothesis
|
||||||
|
python-setuptools))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-chardet python-hypothesis))
|
(list python-chardet))
|
||||||
(home-page "https://github.com/audreyr/binaryornot")
|
(home-page "https://github.com/audreyr/binaryornot")
|
||||||
(synopsis "Package to check if a file is binary or text")
|
(synopsis "Package to check if a file is binary or text")
|
||||||
(description "Ultra-lightweight pure Python package to check if a file is
|
(description "Ultra-lightweight pure Python package to check if a file is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue