gnu: python-pylibacl: Update to 0.7.3.

* gnu/packages/acl.scm (python-pylibacl): Update to 0.7.3.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove 'check phase, improve style.
[native-inputs]: Add python-setuptools.

Change-Id: I5360b2f7f6af3dca3890acb89220b29d1d7b3ae7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-12-21 19:12:24 +01:00 committed by Sharlatan Hellseher
parent a5dd26b9c5
commit 0f647d7e34
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -30,10 +30,13 @@
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages python-build)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix gexp)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix utils)) #:use-module (guix utils))
@ -95,33 +98,28 @@
(define-public python-pylibacl (define-public python-pylibacl
(package (package
(name "python-pylibacl") (name "python-pylibacl")
(version "0.6.0") (version "0.7.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pylibacl" version)) (uri (pypi-uri "pylibacl" version))
(sha256 (sha256
(base32 (base32 "08pr5cbipij3j591bihh72r5h14lyrspy24qwmfjsn0c1rcgp7wx"))))
"1zyrk2m20p5b6bdwxhrwib273i6i71zyr5hzssbxfqis5qra9848")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'disable-tests #~(modify-phases %standard-phases
(lambda* (#:key outputs inputs #:allow-other-keys) (add-after 'unpack 'disable-tests
;; These tests operate on real files, but our tmpfs does not support (lambda* (#:key outputs inputs #:allow-other-keys)
;; ACLs. ;; These tests operate on real files, but our tmpfs does not support
(substitute* "tests/test_acls.py" ;; ACLs.
(("( *)def test_applyto(_extended(_mixed)?)?" match indent) (substitute* "tests/test_acls.py"
(string-append indent "@pytest.mark.skip(reason=\"guix\")\n" (("( *)def test_applyto(_extended(_mixed)?)?" match indent)
match))))) (string-append indent "@pytest.mark.skip(reason=\"guix\")\n"
(replace 'check match))))))))
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "tests")))))))
(inputs (list acl)) (inputs (list acl))
(native-inputs (list python-pytest)) (native-inputs (list python-pytest python-setuptools))
(home-page "https://pylibacl.k1024.org/") (home-page "https://pylibacl.k1024.org/")
(synopsis "POSIX.1e @acronym{ACLs, access control lists} for Python") (synopsis "POSIX.1e @acronym{ACLs, access control lists} for Python")
(description (description