2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-05-15 21:57:56 +00:00
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-05-15 21:57:56 +00:00
|
|
|
, python
|
|
|
|
, dbus-python
|
2022-03-05 16:20:37 +00:00
|
|
|
, packaging
|
2020-05-15 21:57:56 +00:00
|
|
|
, enlightenment
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Should be bumped along with EFL!
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-efl";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.26.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "0dj6f24n33hkpy0bkdclnzpxhvs8vpaxqaf7hkw0di19pjwrq25h";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ enlightenment.efl ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [ dbus-python packaging ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
preBuild = ''
|
|
|
|
${python.interpreter} setup.py build_ext
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
installPhase = ''
|
|
|
|
${python.interpreter} setup.py install --prefix=$out
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "Python bindings for Enlightenment Foundation Libraries";
|
|
|
|
homepage = "https://github.com/DaveMDS/python-efl";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl3 lgpl3 ];
|
|
|
|
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
|
|
|
|
};
|
|
|
|
}
|