nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 annotated-types,
4 buildPythonPackage,
5 dataclass-wizard,
6 fetchFromGitHub,
7 hatchling,
8 pytest-asyncio,
9 pytestCheckHook,
10 pythonOlder,
11 requests,
12 responses,
13}:
14
15buildPythonPackage rec {
16 pname = "todoist-api-python";
17 version = "3.2.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.11";
21
22 src = fetchFromGitHub {
23 owner = "Doist";
24 repo = "todoist-api-python";
25 tag = "v${version}";
26 hash = "sha256-rdXYAPCs3PSIFfpBKMfNNRUOJJK5Y/IzY5bmhxTm4zw=";
27 };
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 annotated-types
33 dataclass-wizard
34 requests
35 ];
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytestCheckHook
40 responses
41 ];
42
43 pythonImportsCheck = [ "todoist_api_python" ];
44
45 meta = {
46 description = "Library for the Todoist REST API";
47 homepage = "https://github.com/Doist/todoist-api-python";
48 changelog = "https://github.com/Doist/todoist-api-python/blob/${src.tag}/CHANGELOG.md";
49 license = with lib.licenses; [ mit ];
50 maintainers = with lib.maintainers; [ fab ];
51 };
52}