nixpkgs/pkgs/development/python-modules/python-efl/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

54 lines
1.3 KiB
Nix

{ lib
, fetchurl
, buildPythonPackage
, pkg-config
, python
, dbus-python
, packaging
, enlightenment
, directoryListingUpdater
}:
# Should be bumped along with EFL!
buildPythonPackage rec {
pname = "python-efl";
version = "1.26.1";
format = "setuptools";
src = fetchurl {
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
hash = "sha256-3Ns5fhIHihnpDYDnxvPP00WIZL/o1UWLzgNott4GKNc=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ enlightenment.efl ];
propagatedBuildInputs = [ dbus-python packaging ];
preConfigure = ''
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
'';
preBuild = ''
${python.pythonOnBuildForHost.interpreter} setup.py build_ext
'';
installPhase = ''
${python.pythonOnBuildForHost.interpreter} setup.py install --prefix=$out --single-version-externally-managed
'';
doCheck = false;
passthru.updateScript = directoryListingUpdater { };
meta = with lib; {
description = "Python bindings for Enlightenment Foundation Libraries";
homepage = "https://github.com/DaveMDS/python-efl";
platforms = platforms.linux;
license = with licenses; [ gpl3 lgpl3 ];
maintainers = with maintainers; [ matejc ftrvxmtrx ] ++ teams.enlightenment.members;
};
}