1{ stdenv
2, fetchurl
3, buildPythonPackage
4, pkgconfig
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.24.0";
15
16 src = fetchurl {
17 url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
18 sha256 = "1vk1cdd959gia4a9qzyq56a9zw3lqf9ck66k8c9g3c631mp5cfpy";
19 };
20
21 nativeBuildInputs = [ pkgconfig ];
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 stdenv.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}