mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 11:32:21 +02:00
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.
This commit is contained in:
committed by
Sharlatan Hellseher
parent
f8c7cd1b1d
commit
4a3faf19d4
@@ -33,6 +33,7 @@
|
|||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages admin)
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages bison)
|
#:use-module (gnu packages bison)
|
||||||
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages crypto)
|
#:use-module (gnu packages crypto)
|
||||||
#:use-module (gnu packages docbook)
|
#:use-module (gnu packages docbook)
|
||||||
#:use-module (gnu packages flex)
|
#:use-module (gnu packages flex)
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
|
#:use-module (gnu packages python-check)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages qt)
|
#:use-module (gnu packages qt)
|
||||||
#:use-module (gnu packages swig)
|
#:use-module (gnu packages swig)
|
||||||
@@ -306,7 +308,7 @@ based on required access.")
|
|||||||
(define-public python-setools
|
(define-public python-setools
|
||||||
(package
|
(package
|
||||||
(name "python-setools")
|
(name "python-setools")
|
||||||
(version "4.4.0")
|
(version "4.5.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
@@ -315,11 +317,12 @@ based on required access.")
|
|||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1qvd5j6zwq4fmlahg45swjplhif2z89x7s6pnp07gvcp2fbqdsh5"))))
|
(base32 "0wm79r0lg0rk6dycf7kjp6gzmbykmq0g0qvz5cdqbwyf3n318bp3"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #f ; the test target causes a rebuild
|
#:tests? #f ; Most tests require access to /usr/bin/checkpolicy
|
||||||
|
#:test-flags #~(list "tests")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'portability)
|
(delete 'portability)
|
||||||
@@ -327,25 +330,26 @@ based on required access.")
|
|||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(setenv "SEPOL"
|
(setenv "SEPOL"
|
||||||
(search-input-file inputs "/lib/libsepol.a"))))
|
(search-input-file inputs "/lib/libsepol.a"))))
|
||||||
(add-after 'unpack 'remove-Werror
|
|
||||||
(lambda _
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("'-Werror',") ""))))
|
|
||||||
(add-after 'unpack 'fix-target-paths
|
(add-after 'unpack 'fix-target-paths
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("join\\(sys.prefix")
|
(("join\\(sys.prefix")
|
||||||
(string-append "join(\"" #$output "/\""))))))))
|
(string-append "join(\"" #$output "/\"")))))
|
||||||
|
(add-before 'check 'fix-tests
|
||||||
|
(lambda _
|
||||||
|
(delete-file-recursively "setools"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bison
|
(list bison
|
||||||
flex
|
flex
|
||||||
python-cython-0
|
python-cython-0
|
||||||
swig
|
swig
|
||||||
|
python-pytest
|
||||||
|
python-pytest-qt
|
||||||
python-setuptools))
|
python-setuptools))
|
||||||
(inputs
|
(inputs
|
||||||
(list libsepol
|
(list libsepol
|
||||||
libselinux
|
libselinux
|
||||||
python-pyqt))
|
python-pyqt-6))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-networkx))
|
(list python-networkx))
|
||||||
(home-page "https://github.com/SELinuxProject/setools")
|
(home-page "https://github.com/SELinuxProject/setools")
|
||||||
|
|||||||
Reference in New Issue
Block a user