diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-22 11:24:32 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-27 21:42:21 +0000 |
| commit | 4a3faf19d41c4ad5c33fd5e87eaa7cc7a5546e4e (patch) | |
| tree | e45bd2027e994b8ee18ae7da434928dcfd47f09e /gnu | |
| parent | f8c7cd1b1dc593600c4d74bdeb99e05304c2125b (diff) | |
gnu: python-setools: Update to 4.5.0.
* gnu/packages/selinux.scm (python-setools): Update to 4.5.0.
[arguments]<#:test-flags>: Set it.
<#:phases>: Remove phase 'remove-Werror. Add phase 'fix-tests.
[native-inputs]: Add python-pytest, python-pytest-qt.
[inputs]: Replace python-pyqt by python-pyqt-6.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/selinux.scm | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/packages/selinux.scm b/gnu/packages/selinux.scm index 9bfb821da68..ca5bd7b1cc6 100644 --- a/gnu/packages/selinux.scm +++ b/gnu/packages/selinux.scm @@ -33,6 +33,7 @@ #:use-module (gnu packages) #:use-module (gnu packages admin) #:use-module (gnu packages bison) + #:use-module (gnu packages check) #:use-module (gnu packages crypto) #:use-module (gnu packages docbook) #:use-module (gnu packages flex) @@ -44,6 +45,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages swig) @@ -306,7 +308,7 @@ based on required access.") (define-public python-setools (package (name "python-setools") - (version "4.4.0") + (version "4.5.0") (source (origin (method git-fetch) @@ -315,11 +317,12 @@ based on required access.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1qvd5j6zwq4fmlahg45swjplhif2z89x7s6pnp07gvcp2fbqdsh5")))) + (base32 "0wm79r0lg0rk6dycf7kjp6gzmbykmq0g0qvz5cdqbwyf3n318bp3")))) (build-system pyproject-build-system) (arguments (list - #:tests? #f ; the test target causes a rebuild + #:tests? #f ; Most tests require access to /usr/bin/checkpolicy + #:test-flags #~(list "tests") #:phases #~(modify-phases %standard-phases (delete 'portability) @@ -327,25 +330,26 @@ based on required access.") (lambda* (#:key inputs #:allow-other-keys) (setenv "SEPOL" (search-input-file inputs "/lib/libsepol.a")))) - (add-after 'unpack 'remove-Werror - (lambda _ - (substitute* "setup.py" - (("'-Werror',") "")))) (add-after 'unpack 'fix-target-paths (lambda _ (substitute* "setup.py" (("join\\(sys.prefix") - (string-append "join(\"" #$output "/\"")))))))) + (string-append "join(\"" #$output "/\""))))) + (add-before 'check 'fix-tests + (lambda _ + (delete-file-recursively "setools")))))) (native-inputs (list bison flex python-cython-0 swig + python-pytest + python-pytest-qt python-setuptools)) (inputs (list libsepol libselinux - python-pyqt)) + python-pyqt-6)) (propagated-inputs (list python-networkx)) (home-page "https://github.com/SELinuxProject/setools") |
