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