14 buildPythonPackage rec {
15 pname = "notion-client";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
23 repo = "notion-sdk-py";
24 rev = "refs/tags/${version}";
25 hash = "sha256-IEWFrdqrawFbuwA8bUewanmBoGWsjHJ7ucgvHQEaMcA=";
28 nativeBuildInputs = [ setuptools ];
30 propagatedBuildInputs = [ httpx ];
32 # disable coverage options as they don't provide us value, and they break the default pytestCheckHook
34 sed -i '/addopts/d' ./setup.cfg
44 pythonImportsCheck = [ "notion_client" ];
47 # requires network access
48 "test_api_http_response_error"
52 description = "Python client for the official Notion API";
53 homepage = "https://github.com/ramnes/notion-sdk-py";
54 changelog = "https://github.com/ramnes/notion-sdk-py/releases/tag/${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ jpetrucciani ];