python3Packages.python-opensky: use pyprojectVersionPatchHook

This commit is contained in:
Robert Schütz
2026-07-08 19:23:00 -07:00
parent 842f062743
commit cb157f07f9
@@ -6,6 +6,7 @@
fetchFromGitHub,
poetry-core,
pydantic,
pyprojectVersionPatchHook,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
@@ -26,13 +27,15 @@ buildPythonPackage rec {
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
substituteInPlace src/python_opensky/opensky.py \
--replace ".joinpath(uri)" "/ uri"
'';
nativeBuildInputs = [ poetry-core ];
nativeBuildInputs = [
pyprojectVersionPatchHook
];
build-system = [ poetry-core ];
propagatedBuildInputs = [
aiohttp