pythonPackages.libselinux: init

This commit is contained in:
Jan Tojnar 2019-10-22 13:39:24 +02:00
parent 4cd2cb43fb
commit 688bf9db8c
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 18 additions and 2 deletions

View File

@ -4,7 +4,6 @@
let
pyenable = { enablePython = true; };
selinuxWithPython = libselinux.override pyenable;
cryptsetupWithPython = cryptsetup.override pyenable;
in buildPythonPackage rec {
pname = "blivet";
@ -31,7 +30,7 @@ in buildPythonPackage rec {
'';
propagatedBuildInputs = [
pykickstart pyparted pyblock pyudev selinuxWithPython.py cryptsetupWithPython
pykickstart pyparted pyblock pyudev libselinux cryptsetupWithPython
six
];

View File

@ -2553,6 +2553,23 @@ in {
inherit (pkgs) libsexy pkgconfig;
};
libselinux = pipe pkgs.libselinux [
toPythonModule
(p: p.overrideAttrs (super: {
meta = super.meta // {
outputsToInstall = [ "py" ];
};
}))
(p: p.override {
enablePython = true;
inherit python;
})
(p: p.py)
];
libsoundtouch = callPackage ../development/python-modules/libsoundtouch { };
libthumbor = callPackage ../development/python-modules/libthumbor { };