Skip to content

Commit

Permalink
Merge pull request NixOS#71659 from jtojnar/pyselinux
Browse files Browse the repository at this point in the history
pythonPackages.libselinux: init

(cherry picked from commit 471869c)
  • Loading branch information
jtojnar authored and dtzWill committed Nov 4, 2019
1 parent 2df5583 commit f51a7b8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pkgs/development/python-modules/blivet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

let
pyenable = { enablePython = true; };
selinuxWithPython = libselinux.override pyenable;
cryptsetupWithPython = cryptsetup.override pyenable;
in buildPythonPackage rec {
pname = "blivet";
Expand All @@ -31,7 +30,7 @@ in buildPythonPackage rec {
'';

propagatedBuildInputs = [
pykickstart pyparted pyblock pyudev selinuxWithPython.py cryptsetupWithPython
pykickstart pyparted pyblock pyudev libselinux cryptsetupWithPython
six
];

Expand Down
17 changes: 17 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2546,6 +2546,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 { };
Expand Down

0 comments on commit f51a7b8

Please sign in to comment.