Loading pkgs/development/python-modules/notion-client/default.nix +11 −17 Original line number Diff line number Diff line { lib, anyio, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook, setuptools, anyio, httpx, pytest-asyncio, pytest-cov-stub, pytest-vcr, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "notion-client"; version = "2.5.0"; version = "2.6.0"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ramnes"; repo = "notion-sdk-py"; tag = version; hash = "sha256-5SuSfjKs5+2lAVyzK3JVk1naiaYYYBF+X2I+k53Fqx4="; hash = "sha256-kUeZhnQwZ+To5NCo7jtQsTfX1kQotbAHDcHf2qwGOIs="; }; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ httpx ]; build-system = [ setuptools ]; # disable coverage options as they don't provide us value, and they break the default pytestCheckHook preCheck = '' sed -i '/addopts/d' ./setup.cfg ''; dependencies = [ httpx ]; nativeCheckInputs = [ pytestCheckHook anyio pytest-asyncio pytest-cov-stub pytest-vcr pytestCheckHook ]; pythonImportsCheck = [ "notion_client" ]; disabledTests = [ # requires network access # Test requires network access "test_api_http_response_error" ]; Loading Loading
pkgs/development/python-modules/notion-client/default.nix +11 −17 Original line number Diff line number Diff line { lib, anyio, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook, setuptools, anyio, httpx, pytest-asyncio, pytest-cov-stub, pytest-vcr, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "notion-client"; version = "2.5.0"; version = "2.6.0"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ramnes"; repo = "notion-sdk-py"; tag = version; hash = "sha256-5SuSfjKs5+2lAVyzK3JVk1naiaYYYBF+X2I+k53Fqx4="; hash = "sha256-kUeZhnQwZ+To5NCo7jtQsTfX1kQotbAHDcHf2qwGOIs="; }; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ httpx ]; build-system = [ setuptools ]; # disable coverage options as they don't provide us value, and they break the default pytestCheckHook preCheck = '' sed -i '/addopts/d' ./setup.cfg ''; dependencies = [ httpx ]; nativeCheckInputs = [ pytestCheckHook anyio pytest-asyncio pytest-cov-stub pytest-vcr pytestCheckHook ]; pythonImportsCheck = [ "notion_client" ]; disabledTests = [ # requires network access # Test requires network access "test_api_http_response_error" ]; Loading