libplist: disable python by default
Introduced in 6449435b04
, only Python 2 is supported and it does not seem to be used by anything.
This commit is contained in:
parent
a06925d8c6
commit
730c92d9e2
@ -1,8 +1,5 @@
|
||||
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }:
|
||||
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, enablePython ? false, python, glib }:
|
||||
|
||||
let
|
||||
inherit (python2Packages) python cython;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libplist";
|
||||
version = "2019-04-04";
|
||||
@ -14,18 +11,23 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "19yw80yblq29i2jx9yb7bx0lfychy9dncri3fk4as35kq5bf26i8";
|
||||
};
|
||||
|
||||
outputs = ["bin" "dev" "out" "py"];
|
||||
outputs = ["bin" "dev" "out" ] ++ stdenv.lib.optional enablePython "py";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
python
|
||||
cython
|
||||
autoreconfHook
|
||||
] ++ stdenv.lib.optionals enablePython [
|
||||
python
|
||||
python.pkgs.cython
|
||||
];
|
||||
|
||||
configureFlags = stdenv.lib.optionals (!enablePython) [
|
||||
"--without-cython"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ glib ];
|
||||
|
||||
postFixup = ''
|
||||
postFixup = stdenv.lib.optionalString enablePython ''
|
||||
moveToOutput "lib/${python.libPrefix}" "$py"
|
||||
'';
|
||||
|
||||
|
@ -3863,7 +3863,7 @@ in {
|
||||
libsavitar = callPackage ../development/python-modules/libsavitar { };
|
||||
|
||||
libplist = disabledIf isPy3k
|
||||
(toPythonModule (pkgs.libplist.override{python2Packages=self; })).py;
|
||||
(toPythonModule (pkgs.libplist.override { enablePython = true; inherit python; })).py;
|
||||
|
||||
libxml2 = (toPythonModule (pkgs.libxml2.override{pythonSupport=true; inherit python;})).py;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user