1{ lib
2, fetchurl
3, buildPythonPackage
4, pkg-config
5, python
6, dbus-python
7, enlightenment
8}:
9
10# Should be bumped along with EFL!
11
12buildPythonPackage rec {
13 pname = "python-efl";
14 version = "1.25.0";
15
16 src = fetchurl {
17 url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
18 sha256 = "0bk161xwlz4dlv56r68xwkm8snzfifaxd1j7w2wcyyk4fgvnvq4r";
19 };
20
21 nativeBuildInputs = [ pkg-config ];
22
23 buildInputs = [ enlightenment.efl ];
24
25 propagatedBuildInputs = [ dbus-python ];
26
27 preConfigure = ''
28 NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
29 '';
30
31 preBuild = ''
32 ${python.interpreter} setup.py build_ext
33 '';
34
35 installPhase = ''
36 ${python.interpreter} setup.py install --prefix=$out
37 '';
38
39 doCheck = false;
40
41 meta = with lib; {
42 description = "Python bindings for EFL and Elementary";
43 homepage = "https://phab.enlightenment.org/w/projects/python_bindings_for_efl/";
44 platforms = platforms.linux;
45 license = with licenses; [ gpl3 lgpl3 ];
46 maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
47 };
48}