nixpkgs/pkgs/development/python-modules/todoist-api-python/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
974 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
requests,
responses,
}:
buildPythonPackage rec {
pname = "todoist-api-python";
version = "2.1.7";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Doist";
repo = "todoist-api-python";
tag = "v${version}";
hash = "sha256-qOb9qAwjQ0MqR+mdNEkt7W8SiBhZ8gRf01TsHDkLPS4=";
};
build-system = [ poetry-core ];
dependencies = [ 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/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}