nixpkgs/pkgs/development/python-modules/notion-client/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

52 lines
1 KiB
Nix

{
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 ];
};
}