From b4794520a9edcad2263d9813d68ab04590f1796d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 25 Oct 2025 08:57:45 +0000 Subject: [PATCH 1/2] python3Packages.notion-client: 2.5.0 -> 2.6.0 --- pkgs/development/python-modules/notion-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/notion-client/default.nix b/pkgs/development/python-modules/notion-client/default.nix index 2463b925176a..9ad8b02c58b5 100644 --- a/pkgs/development/python-modules/notion-client/default.nix +++ b/pkgs/development/python-modules/notion-client/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "notion-client"; - version = "2.5.0"; + version = "2.6.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "ramnes"; repo = "notion-sdk-py"; tag = version; - hash = "sha256-5SuSfjKs5+2lAVyzK3JVk1naiaYYYBF+X2I+k53Fqx4="; + hash = "sha256-kUeZhnQwZ+To5NCo7jtQsTfX1kQotbAHDcHf2qwGOIs="; }; nativeBuildInputs = [ setuptools ]; From dadfbbb816a6fbd7764c2adb71ae5f167833588c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Oct 2025 12:30:03 +0200 Subject: [PATCH 2/2] python313Packages.notion-client: modernize --- .../python-modules/notion-client/default.nix | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/notion-client/default.nix b/pkgs/development/python-modules/notion-client/default.nix index 9ad8b02c58b5..cc60507b7515 100644 --- a/pkgs/development/python-modules/notion-client/default.nix +++ b/pkgs/development/python-modules/notion-client/default.nix @@ -1,14 +1,14 @@ { lib, + anyio, buildPythonPackage, fetchFromGitHub, - pythonOlder, - pytestCheckHook, - setuptools, - anyio, httpx, pytest-asyncio, + pytest-cov-stub, pytest-vcr, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -16,8 +16,6 @@ buildPythonPackage rec { version = "2.6.0"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchFromGitHub { owner = "ramnes"; repo = "notion-sdk-py"; @@ -25,26 +23,22 @@ buildPythonPackage rec { hash = "sha256-kUeZhnQwZ+To5NCo7jtQsTfX1kQotbAHDcHf2qwGOIs="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ 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 - ''; + 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" ];