mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
python3Packages.pyjnius: migrate to pyproject
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user