python3Packages.pycfdns: use pyprojectVersionPatchHook

This commit is contained in:
Robert Schütz
2026-07-02 22:26:17 -07:00
parent f43e09c13b
commit dc9b2d36d5

View File

@@ -4,6 +4,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyprojectVersionPatchHook,
}:
buildPythonPackage rec {
@@ -18,14 +19,13 @@ buildPythonPackage rec {
hash = "sha256-bLzDakxKq8fcjEKSxc6D5VN9gfAu1M3/zaAU2UYnwSs=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version="0",' 'version="${version}",'
'';
nativeBuildInputs = [
pyprojectVersionPatchHook
];
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
dependencies = [ aiohttp ];
# Project has no tests
doCheck = false;