blob: 7d3574f6c3e3177f1e54770357cf1f09de3964e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
httpx,
pytest-asyncio,
pytest-cov-stub,
pytest-vcr,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "notion-client";
version = "2.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ramnes";
repo = "notion-sdk-py";
tag = version;
hash = "sha256-15IPycaLk8r0/bUphL+IDypBMhgdX1tAUS50VD3p/00=";
};
build-system = [ setuptools ];
dependencies = [ httpx ];
nativeCheckInputs = [
anyio
pytest-asyncio
pytest-cov-stub
pytest-vcr
pytestCheckHook
];
pythonImportsCheck = [ "notion_client" ];
disabledTests = [
# Test requires network access
"test_api_http_response_error"
];
meta = {
description = "Python client for the official Notion API";
homepage = "https://github.com/ramnes/notion-sdk-py";
changelog = "https://github.com/ramnes/notion-sdk-py/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jpetrucciani ];
};
}
|