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
|
2022-10-30 15:09:59 +00:00
|
|
|
, directoryListingUpdater
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
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 = ''
|
2023-03-04 12:14:45 +00:00
|
|
|
${python.pythonForBuild.interpreter} setup.py build_ext
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
installPhase = ''
|
2023-03-04 12:14:45 +00:00
|
|
|
${python.pythonForBuild.interpreter} setup.py install --prefix=$out --single-version-externally-managed
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.updateScript = directoryListingUpdater { };
|
|
|
|
|
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 ];
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ matejc ftrvxmtrx ] ++ teams.enlightenment.members;
|
2023-05-24 13:37:59 +00:00
|
|
|
# The generated files in the tarball aren't compatible with python 3.11
|
|
|
|
# See https://sourceforge.net/p/enlightenment/mailman/message/37794291/
|
|
|
|
broken = python.pythonAtLeast "3.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|