diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-21 19:12:24 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-27 22:02:52 +0000 |
| commit | 0f647d7e34cca26896f901945752298cf52bfd08 (patch) | |
| tree | 785e1628b0fd9b0502634c2058e8496adbc98c82 | |
| parent | a5dd26b9c5702fc3cf9ee76082e69766b063313a (diff) | |
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>
| -rw-r--r-- | gnu/packages/acl.scm | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/gnu/packages/acl.scm b/gnu/packages/acl.scm index bc375722529..b2551acc1b2 100644 --- a/gnu/packages/acl.scm +++ b/gnu/packages/acl.scm | |||
| @@ -30,10 +30,13 @@ | |||
| 30 | #:use-module (gnu packages check) | 30 | #:use-module (gnu packages check) |
| 31 | #:use-module (gnu packages gettext) | 31 | #:use-module (gnu packages gettext) |
| 32 | #:use-module (gnu packages perl) | 32 | #:use-module (gnu packages perl) |
| 33 | #:use-module (gnu packages python-build) | ||
| 33 | #:use-module (guix packages) | 34 | #:use-module (guix packages) |
| 34 | #:use-module (guix download) | 35 | #:use-module (guix download) |
| 36 | #:use-module (guix gexp) | ||
| 35 | #:use-module (gnu packages) | 37 | #:use-module (gnu packages) |
| 36 | #:use-module (guix build-system gnu) | 38 | #:use-module (guix build-system gnu) |
| 39 | #:use-module (guix build-system pyproject) | ||
| 37 | #:use-module (guix build-system python) | 40 | #:use-module (guix build-system python) |
| 38 | #:use-module (guix utils)) | 41 | #:use-module (guix utils)) |
| 39 | 42 | ||
| @@ -95,33 +98,28 @@ | |||
| 95 | (define-public python-pylibacl | 98 | (define-public python-pylibacl |
| 96 | (package | 99 | (package |
| 97 | (name "python-pylibacl") | 100 | (name "python-pylibacl") |
| 98 | (version "0.6.0") | 101 | (version "0.7.3") |
| 99 | (source | 102 | (source |
| 100 | (origin | 103 | (origin |
| 101 | (method url-fetch) | 104 | (method url-fetch) |
| 102 | (uri (pypi-uri "pylibacl" version)) | 105 | (uri (pypi-uri "pylibacl" version)) |
| 103 | (sha256 | 106 | (sha256 |
| 104 | (base32 | 107 | (base32 "08pr5cbipij3j591bihh72r5h14lyrspy24qwmfjsn0c1rcgp7wx")))) |
| 105 | "1zyrk2m20p5b6bdwxhrwib273i6i71zyr5hzssbxfqis5qra9848")))) | 108 | (build-system pyproject-build-system) |
| 106 | (build-system python-build-system) | ||
| 107 | (arguments | 109 | (arguments |
| 108 | `(#:phases | 110 | (list |
| 109 | (modify-phases %standard-phases | 111 | #:phases |
| 110 | (add-after 'unpack 'disable-tests | 112 | #~(modify-phases %standard-phases |
| 111 | (lambda* (#:key outputs inputs #:allow-other-keys) | 113 | (add-after 'unpack 'disable-tests |
| 112 | ;; These tests operate on real files, but our tmpfs does not support | 114 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 113 | ;; ACLs. | 115 | ;; These tests operate on real files, but our tmpfs does not support |
| 114 | (substitute* "tests/test_acls.py" | 116 | ;; ACLs. |
| 115 | (("( *)def test_applyto(_extended(_mixed)?)?" match indent) | 117 | (substitute* "tests/test_acls.py" |
| 116 | (string-append indent "@pytest.mark.skip(reason=\"guix\")\n" | 118 | (("( *)def test_applyto(_extended(_mixed)?)?" match indent) |
| 117 | match))))) | 119 | (string-append indent "@pytest.mark.skip(reason=\"guix\")\n" |
| 118 | (replace 'check | 120 | match)))))))) |
| 119 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) | ||
| 120 | (when tests? | ||
| 121 | (add-installed-pythonpath inputs outputs) | ||
| 122 | (invoke "pytest" "tests"))))))) | ||
| 123 | (inputs (list acl)) | 121 | (inputs (list acl)) |
| 124 | (native-inputs (list python-pytest)) | 122 | (native-inputs (list python-pytest python-setuptools)) |
| 125 | (home-page "https://pylibacl.k1024.org/") | 123 | (home-page "https://pylibacl.k1024.org/") |
| 126 | (synopsis "POSIX.1e @acronym{ACLs, access control lists} for Python") | 124 | (synopsis "POSIX.1e @acronym{ACLs, access control lists} for Python") |
| 127 | (description | 125 | (description |
