This is an automated email from the git hooks/post-receive script. guix_mirror_bot pushed a commit to branch python-team in repository guix.
The following commit(s) were added to refs/heads/python-team by this push: new c6a4b84e15 gnu: python-setools: Improve package, fix build. c6a4b84e15 is described below commit c6a4b84e15ed38dc1fed4eddd81cf47222565f51 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Tue Sep 23 14:26:57 2025 +0100 gnu: python-setools: Improve package, fix build. * gnu/packages/selinux.scm (python-setools): Use G-Expressions, fix indentation, remove trailing #t from lambdas. [native-inputs]: Remove python-cython; add python-cython-0. Change-Id: Ib30043915a6895022b32cb818a74aea54d91b6d2 --- gnu/packages/selinux.scm | 68 +++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/gnu/packages/selinux.scm b/gnu/packages/selinux.scm index c72dfa007b..72ba66604c 100644 --- a/gnu/packages/selinux.scm +++ b/gnu/packages/selinux.scm @@ -305,42 +305,46 @@ based on required access.") (package (name "python-setools") (version "4.4.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/SELinuxProject/setools") - (commit version))) - (file-name (string-append name "-" version "-checkout")) - (sha256 - (base32 - "1qvd5j6zwq4fmlahg45swjplhif2z89x7s6pnp07gvcp2fbqdsh5")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SELinuxProject/setools") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qvd5j6zwq4fmlahg45swjplhif2z89x7s6pnp07gvcp2fbqdsh5")))) (build-system python-build-system) (arguments - `(#:tests? #f ; the test target causes a rebuild - #:phases - (modify-phases %standard-phases - (delete 'portability) - (add-after 'unpack 'set-SEPOL-variable - (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',") "")) - #t)) - (add-after 'unpack 'fix-target-paths - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "setup.py" - (("join\\(sys.prefix") - (string-append "join(\"" (assoc-ref outputs "out") "/\""))) - #t))))) + (list + #:tests? #f ; the test target causes a rebuild + #:phases + #~(modify-phases %standard-phases + (delete 'portability) + (add-after 'unpack 'set-SEPOL-variable + (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 "/\"")))))))) + (native-inputs + (list bison + flex + python-cython-0 + swig)) + (inputs + (list libsepol + libselinux + python-pyqt)) (propagated-inputs (list python-networkx)) - (inputs - (list libsepol libselinux python-pyqt)) - (native-inputs - (list bison flex python-cython swig)) (home-page "https://github.com/SELinuxProject/setools") (synopsis "Tools for SELinux policy analysis") (description "SETools is a collection of graphical tools, command-line