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