nixpkgs/pkgs/development/python-modules/todoist-api-python/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

49 lines
996 B
Nix

{
lib,
annotated-types,
buildPythonPackage,
dataclass-wizard,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
requests,
responses,
}:
buildPythonPackage rec {
pname = "todoist-api-python";
version = "3.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Doist";
repo = "todoist-api-python";
tag = "v${version}";
hash = "sha256-udYFWTrWW2G6JBKQUkiqKpyBz1D4dwq7Pix6bzuWnDY=";
};
build-system = [ hatchling ];
dependencies = [
annotated-types
dataclass-wizard
requests
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
responses
];
pythonImportsCheck = [ "todoist_api_python" ];
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/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}