anchor.diff:  
     patches = [ ./fPIC.patch ]; # libsemanage seems to need -fPIC everywhere
   
  -  buildInputs = [ pkgconfig libsepol pcre ];
  +  buildInputs = [ pkgconfig libsepol pcre ]
  +             ++ optionals enablePython [ swig python ];
   
     prePatch = ''
       tar xvf ${patch_src}
  
positive.code: { stdenv, fetchurl, pkgconfig, libsepol, pcre }:
  
  stdenv.mkDerivation rec {
    name = "libselinux-${version}";
  
negative.code:     done
    '';
  
    postPatch = optionalString enablePython ''
      sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
    '';
  
    installFlags = [ "PREFIX=$(out)" "DESTDIR=$(out)" "LIBSEPOLDIR=${libsepol}" ];
    installTargets = [ "install" ] ++ optional enablePython "install-pywrap";
  
    meta = {
      inherit (libsepol.meta) homepage platforms maintainers;
  