python312Packages.pythonefl: use pyproject = true, disable for python 3.13
This commit is contained in:
@@ -2,11 +2,17 @@
|
||||
lib,
|
||||
fetchurl,
|
||||
buildPythonPackage,
|
||||
pythonAtLeast,
|
||||
|
||||
pkg-config,
|
||||
python,
|
||||
dbus-python,
|
||||
packaging,
|
||||
|
||||
enlightenment,
|
||||
|
||||
packaging,
|
||||
setuptools,
|
||||
|
||||
dbus-python,
|
||||
|
||||
directoryListingUpdater,
|
||||
}:
|
||||
|
||||
@@ -15,10 +21,13 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "python-efl";
|
||||
version = "1.26.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
# As of 1.26.1, native extensions fail to build with python 3.13+
|
||||
disabled = pythonAtLeast "3.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
|
||||
url = "http://download.enlightenment.org/rel/bindings/python/python-efl-${version}.tar.xz";
|
||||
hash = "sha256-3Ns5fhIHihnpDYDnxvPP00WIZL/o1UWLzgNott4GKNc=";
|
||||
};
|
||||
|
||||
@@ -26,23 +35,19 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ enlightenment.efl ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dbus-python
|
||||
build-system = [
|
||||
packaging
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
dbus-python
|
||||
];
|
||||
|
||||
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 { };
|
||||
|
||||
Reference in New Issue
Block a user