2020-05-02 03:02:02 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pkgconfig
|
|
|
|
, python
|
|
|
|
, enlightenment
|
|
|
|
}:
|
2018-08-28 23:19:48 +01:00
|
|
|
|
|
|
|
# Should be bumped along with EFL!
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "python-efl";
|
2019-10-26 14:20:05 +01:00
|
|
|
version = "1.23.0";
|
2018-08-28 23:19:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
|
2019-10-26 14:20:05 +01:00
|
|
|
sha256 = "16yn6a1b9167nfmryyi44ma40m20ansfpwgrvqzfvwix7qaz9pib";
|
2018-08-28 23:19:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ enlightenment.efl ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python.pkgs.dbus-python ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2020-05-02 03:02:02 +01:00
|
|
|
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl) -I${stdenv.lib.getDev python.pkgs.dbus-python}/include/dbus-1.0 $NIX_CFLAGS_COMPILE"
|
2018-08-28 23:19:48 +01:00
|
|
|
'';
|
2019-03-03 01:34:08 +00:00
|
|
|
|
2020-05-02 03:02:02 +01:00
|
|
|
preBuild = ''
|
|
|
|
${python.interpreter} setup.py build_ext
|
|
|
|
'';
|
2018-08-28 23:19:48 +01:00
|
|
|
|
2020-05-02 03:02:02 +01:00
|
|
|
installPhase = ''
|
|
|
|
${python.interpreter} setup.py install --prefix=$out
|
|
|
|
'';
|
2018-08-28 23:19:48 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python bindings for EFL and Elementary";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://phab.enlightenment.org/w/projects/python_bindings_for_efl/";
|
2018-08-28 23:19:48 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl3 lgpl3 ];
|
2019-10-26 14:52:09 +01:00
|
|
|
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
|
2018-08-28 23:19:48 +01:00
|
|
|
};
|
|
|
|
}
|