git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.libselinux: init
commit688bf9db8ca200028d5b4c2e6fb9ead3afc76324 authorJan Tojnar <jtojnar@gmail.com> dateTue 22 Oct 2019, 13:39 (7 years ago) parent4cd2cb4
2 files changed+18−2
pkgs/development/python-modules/blivet/default.nix+1−2 pkgs/top-level/python-packages.nix+17
pkgs/development/python-modules/blivet/default.nix+1−2
@@ -4,7 +4,6 @@
44
55let
66 pyenable = { enablePython = true; };
7− selinuxWithPython = libselinux.override pyenable;
87 cryptsetupWithPython = cryptsetup.override pyenable;
98in buildPythonPackage rec {
109 pname = "blivet";
@@ -31,7 +30,7 @@ in buildPythonPackage rec {
3130 '';
3231
3332 propagatedBuildInputs = [
34− pykickstart pyparted pyblock pyudev selinuxWithPython.py cryptsetupWithPython
33+ pykickstart pyparted pyblock pyudev libselinux cryptsetupWithPython
3534 six
3635 ];
3736
pkgs/top-level/python-packages.nix+17
@@ -2553,6 +2553,23 @@ in {
25532553 inherit (pkgs) libsexy pkgconfig;
25542554 };
25552555
2556+ libselinux = pipe pkgs.libselinux [
2557+ toPythonModule
2558+
2559+ (p: p.overrideAttrs (super: {
2560+ meta = super.meta // {
2561+ outputsToInstall = [ "py" ];
2562+ };
2563+ }))
2564+
2565+ (p: p.override {
2566+ enablePython = true;
2567+ inherit python;
2568+ })
2569+
2570+ (p: p.py)
2571+ ];
2572+
25562573 libsoundtouch = callPackage ../development/python-modules/libsoundtouch { };
25572574
25582575 libthumbor = callPackage ../development/python-modules/libthumbor { };