python2.pkgs.nixpart0: use correct libselinux bindings

Sine 56e557257d libselinux in pkgs defaults to Python 3 so let's use the one from python.pkgs to make sure it matches.
This commit is contained in:
Jan Tojnar
2020-01-18 11:20:40 +01:00
parent c438ce12a8
commit 07b8ab4ff7
2 changed files with 3 additions and 3 deletions
@@ -35,7 +35,7 @@ buildPythonApplication rec {
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
pykickstart pyparted pyblock libselinux.py cryptsetup pykickstart pyparted pyblock libselinux cryptsetup
] ++ stdenv.lib.optional useNixUdev systemd; ] ++ stdenv.lib.optional useNixUdev systemd;
# tests are currently _heavily_ broken upstream # tests are currently _heavily_ broken upstream
@@ -1,4 +1,5 @@
{ stdenv, fetchurl, python, buildPythonApplication { stdenv, fetchurl, python, buildPythonApplication
, libselinux
# Propagated to blivet # Propagated to blivet
, useNixUdev ? true , useNixUdev ? true
# Needed by NixOps # Needed by NixOps
@@ -10,10 +11,9 @@
let let
blivet = import ./blivet.nix { blivet = import ./blivet.nix {
inherit stdenv fetchurl buildPythonApplication; inherit stdenv fetchurl buildPythonApplication;
inherit pykickstart pyparted pyblock cryptsetup multipath_tools; inherit pykickstart pyparted pyblock cryptsetup libselinux multipath_tools;
inherit useNixUdev; inherit useNixUdev;
inherit (pkgs) lsof utillinux systemd; inherit (pkgs) lsof utillinux systemd;
libselinux = pkgs.libselinux.override { enablePython = true; };
}; };
cryptsetup = import ./cryptsetup.nix { cryptsetup = import ./cryptsetup.nix {