git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #71659 from jtojnar/pyselinux

pythonPackages.libselinux: init

commit471869c9185fb610e67940a701eb13b1cfb335a4 authorJan Tojnar <jtojnar@gmail.com> dateThu 31 Oct 2019, 16:03 (7 years ago) parenta51ea52688bf9d
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
@@ -2573,6 +2573,23 @@ in {
25732573 inherit (pkgs) libsexy pkgconfig;
25742574 };
25752575
2576+ libselinux = pipe pkgs.libselinux [
2577+ toPythonModule
2578+
2579+ (p: p.overrideAttrs (super: {
2580+ meta = super.meta // {
2581+ outputsToInstall = [ "py" ];
2582+ };
2583+ }))
2584+
2585+ (p: p.override {
2586+ enablePython = true;
2587+ inherit python;
2588+ })
2589+
2590+ (p: p.py)
2591+ ];
2592+
25762593 libsoundtouch = callPackage ../development/python-modules/libsoundtouch { };
25772594
25782595 libthumbor = callPackage ../development/python-modules/libthumbor { };