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