diff --git a/pkgs/development/python-modules/todoist-api-python/default.nix b/pkgs/development/python-modules/todoist-api-python/default.nix index c832320646c8..f1434ebd4f9a 100644 --- a/pkgs/development/python-modules/todoist-api-python/default.nix +++ b/pkgs/development/python-modules/todoist-api-python/default.nix @@ -1,8 +1,10 @@ { lib, + annotated-types, buildPythonPackage, + dataclass-wizard, fetchFromGitHub, - poetry-core, + hatchling, pytest-asyncio, pytestCheckHook, pythonOlder, @@ -12,7 +14,7 @@ buildPythonPackage rec { pname = "todoist-api-python"; - version = "2.1.7"; + version = "3.2.0"; pyproject = true; disabled = pythonOlder "3.11"; @@ -21,12 +23,16 @@ buildPythonPackage rec { owner = "Doist"; repo = "todoist-api-python"; tag = "v${version}"; - hash = "sha256-qOb9qAwjQ0MqR+mdNEkt7W8SiBhZ8gRf01TsHDkLPS4="; + hash = "sha256-rdXYAPCs3PSIFfpBKMfNNRUOJJK5Y/IzY5bmhxTm4zw="; }; - build-system = [ poetry-core ]; + build-system = [ hatchling ]; - dependencies = [ requests ]; + dependencies = [ + annotated-types + dataclass-wizard + requests + ]; nativeCheckInputs = [ pytest-asyncio @@ -39,7 +45,7 @@ buildPythonPackage rec { meta = { description = "Library for the Todoist REST API"; homepage = "https://github.com/Doist/todoist-api-python"; - changelog = "https://github.com/Doist/todoist-api-python/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/Doist/todoist-api-python/blob/${src.tag}/CHANGELOG.md"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; };