Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 51 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook, anyio, httpx, pytest-asyncio, pytest-vcr}:
buildPythonPackage rec { pname = "notion-client"; version = "2.0.0"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "ramnes"; repo = "notion-sdk-py"; rev = version; hash = "sha256-zfG1OgH/2ytDUC+ogIY9/nP+xkgjiMt9+HVcWEMXoj8="; };
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" ];
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/${version}"; license = licenses.mit; maintainers = with maintainers; [ jpetrucciani ]; };}