Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook, setuptools, anyio, httpx, pytest-asyncio, pytest-vcr,}:
buildPythonPackage rec { pname = "notion-client"; version = "2.4.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "ramnes"; repo = "notion-sdk-py"; tag = version; hash = "sha256-vzgFW37pA4LRS+Rqz1QN92EuLTrlWnJqA/H+IhSHQi8="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ httpx ];
# disable coverage options as they don't provide us value, and they break the default pytestCheckHook preCheck = '' sed -i '/addopts/d' ./setup.cfg '';
nativeCheckInputs = [ pytestCheckHook anyio pytest-asyncio pytest-vcr ];
pythonImportsCheck = [ "notion_client" ];
disabledTests = [ # requires network access "test_api_http_response_error" ];
meta = with lib; { 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 = licenses.mit; maintainers = with maintainers; [ jpetrucciani ]; };}