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