python311Packages.dataclasses-json: fix version handling

This commit is contained in:
Fabian Affolter 2023-08-21 23:04:27 +02:00
parent 3e11564e95
commit 8a011970b3

View file

@ -24,6 +24,11 @@ buildPythonPackage rec {
hash = "sha256-pCvVKHh2elHaukEJNTw8MgJmoTlYjO9aVWFCQXXD13c=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
'';
nativeBuildInputs = [
poetry-core
poetry-dynamic-versioning