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