Files
nixpkgs/pkgs/development/python-modules/python-efl/default.nix
T

49 lines
1.1 KiB
Nix
Raw Normal View History

2020-05-01 23:02:02 -03:00
{ stdenv
, fetchurl
, buildPythonPackage
, pkgconfig
, python
2020-05-01 23:15:02 -03:00
, dbus-python
2020-05-01 23:02:02 -03:00
, enlightenment
}:
2018-08-28 19:19:48 -03:00
# Should be bumped along with EFL!
buildPythonPackage rec {
pname = "python-efl";
2020-09-26 20:14:25 -03:00
version = "1.25.0";
2018-08-28 19:19:48 -03:00
src = fetchurl {
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
2020-09-26 20:14:25 -03:00
sha256 = "0bk161xwlz4dlv56r68xwkm8snzfifaxd1j7w2wcyyk4fgvnvq4r";
2018-08-28 19:19:48 -03:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ enlightenment.efl ];
2020-05-01 23:15:02 -03:00
propagatedBuildInputs = [ dbus-python ];
2018-08-28 19:19:48 -03:00
preConfigure = ''
2020-05-01 23:15:02 -03:00
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
2018-08-28 19:19:48 -03:00
'';
2020-05-01 23:02:02 -03:00
preBuild = ''
${python.interpreter} setup.py build_ext
'';
2018-08-28 19:19:48 -03:00
2020-05-01 23:02:02 -03:00
installPhase = ''
${python.interpreter} setup.py install --prefix=$out
'';
2018-08-28 19:19:48 -03:00
doCheck = false;
meta = with stdenv.lib; {
description = "Python bindings for EFL and Elementary";
homepage = "https://phab.enlightenment.org/w/projects/python_bindings_for_efl/";
2018-08-28 19:19:48 -03:00
platforms = platforms.linux;
license = with licenses; [ gpl3 lgpl3 ];
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
2018-08-28 19:19:48 -03:00
};
}