2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-05-02 03:02:02 +01:00
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pkgconfig
|
|
|
|
, python
|
2020-05-02 03:15:02 +01:00
|
|
|
, dbus-python
|
2020-05-02 03:02:02 +01:00
|
|
|
, 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";
|
2020-09-27 00:14:25 +01:00
|
|
|
version = "1.25.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";
|
2020-09-27 00:14:25 +01:00
|
|
|
sha256 = "0bk161xwlz4dlv56r68xwkm8snzfifaxd1j7w2wcyyk4fgvnvq4r";
|
2018-08-28 23:19:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ enlightenment.efl ];
|
|
|
|
|
2020-05-02 03:15:02 +01:00
|
|
|
propagatedBuildInputs = [ dbus-python ];
|
2018-08-28 23:19:48 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2020-05-02 03:15:02 +01:00
|
|
|
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-28 23:19:48 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|