Merge pull request #45668 from romildo/upd.python-efl

pythonefl: 1.20.0 -> 1.21.0
This commit is contained in:
Jörg Thalheim 2018-08-29 09:41:29 +01:00 committed by GitHub
commit ff449e176a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 29 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, python, enlightenment }:
# Should be bumped along with EFL!
buildPythonPackage rec {
name = "python-efl-${version}";
version = "1.21.0";
src = fetchurl {
url = "http://download.enlightenment.org/rel/bindings/python/${name}.tar.xz";
sha256 = "08x2cv8hnf004c3711250wrax21ffj5y8951pvk77h98als4pq47";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ enlightenment.efl ];
propagatedBuildInputs = [ python.pkgs.dbus-python ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl) -I${python.pkgs.dbus-python}/include/dbus-1.0 $NIX_CFLAGS_COMPILE"
'';
preBuild = "${python.interpreter} setup.py build_ext";
installPhase= "${python.interpreter} setup.py install --prefix=$out";
doCheck = false;
meta = with stdenv.lib; {
description = "Python bindings for EFL and Elementary";
homepage = https://phab.enlightenment.org/w/projects/python_bindings_for_efl/;
platforms = platforms.linux;
license = with licenses; [ gpl3 lgpl3 ];
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx ];
};
}

View file

@ -15646,35 +15646,7 @@ EOF
# added 2018-05-23, can be removed once 18.09 is branched off
udiskie = throw "pythonPackages.udiskie has been replaced by udiskie";
# Should be bumped along with EFL!
pythonefl = buildPythonPackage rec {
name = "python-efl-${version}";
version = "1.20.0";
src = pkgs.fetchurl {
url = "http://download.enlightenment.org/rel/bindings/python/${name}.tar.xz";
sha256 = "18qfqdkkjydqjk0nxs7wnnzdnqlbj3fhkjm0bbd927myzbihxpkh";
};
hardeningDisable = [ "format" ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl) -I${self.dbus-python}/include/dbus-1.0 $NIX_CFLAGS_COMPILE"
'';
preBuild = "${python}/bin/${python.executable} setup.py build_ext";
installPhase= "${python}/bin/${python.executable} setup.py install --prefix=$out";
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with self; [ pkgs.enlightenment.efl ];
doCheck = false;
meta = {
description = "Python bindings for EFL and Elementary";
homepage = http://enlightenment.org/;
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx ];
};
};
pythonefl = callPackage ../development/python-modules/python-efl { };
tlsh = buildPythonPackage rec {
name = "tlsh-3.4.5";