diff --git a/pkgs/development/python-modules/aioweenect/default.nix b/pkgs/development/python-modules/aioweenect/default.nix index 951244f60829..d00ea8a60dd0 100644 --- a/pkgs/development/python-modules/aioweenect/default.nix +++ b/pkgs/development/python-modules/aioweenect/default.nix @@ -5,12 +5,13 @@ buildPythonPackage, fetchFromGitHub, hatchling, + pyprojectVersionPatchHook, pytest-asyncio, pytest-cov-stub, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aioweenect"; version = "1.1.7"; pyproject = true; @@ -18,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "eifinger"; repo = "aioweenect"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-YaIOCBBfL2lC6EPwBShVbPXiVlic7zK6pNOWjBJ/Y7I="; }; @@ -31,6 +32,8 @@ buildPythonPackage rec { build-system = [ hatchling ]; + nativeBuildInputs = [ pyprojectVersionPatchHook ]; + dependencies = [ aiohttp ]; nativeCheckInputs = [ @@ -47,8 +50,8 @@ buildPythonPackage rec { meta = { description = "Library for the weenect API"; homepage = "https://github.com/eifinger/aioweenect"; - changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}"; + changelog = "https://github.com/eifinger/aioweenect/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})