2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-05-01 23:02:02 -03:00
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
2021-01-18 22:50:56 -08:00
|
|
|
, pkg-config
|
2020-05-01 23:02:02 -03:00
|
|
|
, python
|
2020-05-01 23:15:02 -03:00
|
|
|
, dbus-python
|
2022-02-28 19:23:16 -03:00
|
|
|
, packaging
|
2020-05-01 23:02:02 -03:00
|
|
|
, enlightenment
|
2022-10-27 10:41:07 -03:00
|
|
|
, directoryListingUpdater
|
2020-05-01 23:02:02 -03:00
|
|
|
}:
|
2018-08-28 19:19:48 -03:00
|
|
|
|
|
|
|
# Should be bumped along with EFL!
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "python-efl";
|
2022-02-28 19:23:16 -03:00
|
|
|
version = "1.26.0";
|
2018-08-28 19:19:48 -03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
|
2022-02-28 19:23:16 -03:00
|
|
|
sha256 = "0dj6f24n33hkpy0bkdclnzpxhvs8vpaxqaf7hkw0di19pjwrq25h";
|
2018-08-28 19:19:48 -03:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-08-28 19:19:48 -03:00
|
|
|
|
|
|
|
buildInputs = [ enlightenment.efl ];
|
|
|
|
|
2022-02-28 19:23:16 -03:00
|
|
|
propagatedBuildInputs = [ dbus-python packaging ];
|
2018-08-28 19:19:48 -03:00
|
|
|
|
|
|
|
preConfigure = ''
|
2020-05-01 23:15:02 -03:00
|
|
|
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
|
2018-08-28 19:19:48 -03:00
|
|
|
'';
|
2019-03-03 02:34:08 +01:00
|
|
|
|
2020-05-01 23:02:02 -03:00
|
|
|
preBuild = ''
|
|
|
|
${python.interpreter} setup.py build_ext
|
|
|
|
'';
|
2018-08-28 19:19:48 -03:00
|
|
|
|
2020-05-01 23:02:02 -03:00
|
|
|
installPhase = ''
|
2022-08-06 15:37:46 -03:00
|
|
|
${python.interpreter} setup.py install --prefix=$out --single-version-externally-managed
|
2020-05-01 23:02:02 -03:00
|
|
|
'';
|
2018-08-28 19:19:48 -03:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-10-27 10:41:07 -03:00
|
|
|
passthru.updateScript = directoryListingUpdater { };
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-02-28 19:23:16 -03:00
|
|
|
description = "Python bindings for Enlightenment Foundation Libraries";
|
|
|
|
homepage = "https://github.com/DaveMDS/python-efl";
|
2018-08-28 19:19:48 -03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl3 lgpl3 ];
|
2022-06-23 01:40:02 +02:00
|
|
|
maintainers = with maintainers; [ matejc ftrvxmtrx ] ++ teams.enlightenment.members;
|
2018-08-28 19:19:48 -03:00
|
|
|
};
|
|
|
|
}
|