Merge pull request #71659 from jtojnar/pyselinux

pythonPackages.libselinux: init
This commit is contained in:
Jan Tojnar 2019-10-31 16:03:13 +01:00 committed by GitHub
commit 471869c918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -2573,6 +2573,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 { };