diff --git a/pkgs/development/python-modules/blivet/default.nix b/pkgs/development/python-modules/blivet/default.nix index 1c86c02f7a8..9bf93fe8c38 100644 --- a/pkgs/development/python-modules/blivet/default.nix +++ b/pkgs/development/python-modules/blivet/default.nix @@ -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 ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1cae92a2c2f..417efd93912 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };