3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/python-efl/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2020-05-02 03:02:02 +01:00
{ stdenv
, fetchurl
, buildPythonPackage
, pkgconfig
, python
, enlightenment
}:
# Should be bumped along with EFL!
buildPythonPackage rec {
pname = "python-efl";
version = "1.23.0";
src = fetchurl {
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
sha256 = "16yn6a1b9167nfmryyi44ma40m20ansfpwgrvqzfvwix7qaz9pib";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ enlightenment.efl ];
propagatedBuildInputs = [ python.pkgs.dbus-python ];
preConfigure = ''
2020-05-02 03:02:02 +01:00
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl) -I${stdenv.lib.getDev python.pkgs.dbus-python}/include/dbus-1.0 $NIX_CFLAGS_COMPILE"
'';
2020-05-02 03:02:02 +01:00
preBuild = ''
${python.interpreter} setup.py build_ext
'';
2020-05-02 03:02:02 +01:00
installPhase = ''
${python.interpreter} setup.py install --prefix=$out
'';
doCheck = false;
meta = with stdenv.lib; {
description = "Python bindings for EFL and Elementary";
homepage = "https://phab.enlightenment.org/w/projects/python_bindings_for_efl/";
platforms = platforms.linux;
license = with licenses; [ gpl3 lgpl3 ];
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
};
}