python3Packages.pyjnius: migrate to pyproject

This commit is contained in:
Sigmanificient
2026-08-08 00:47:00 +02:00
parent 4fa4fdfc61
commit db017de490

View File

@@ -4,18 +4,27 @@
cython,
fetchPypi,
jdk,
setuptools,
}:
buildPythonPackage rec {
pname = "pyjnius";
version = "1.7.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-n4FwhISwqE6tPrC6hOU6xXnkxDyhDHRvmJip891Q9U0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "Cython~=3.1.2" "Cython"
'';
build-system = [ setuptools ];
nativeBuildInputs = [
jdk
cython