From fba9afc2f63678462d7213b49840dd8d303e1fb5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 28 Aug 2025 10:04:08 +0200 Subject: [PATCH 1/3] python313Packages.skops: update inputs --- .../python-modules/skops/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/skops/default.nix b/pkgs/development/python-modules/skops/default.nix index 4356e4fe4983..2f6045014129 100644 --- a/pkgs/development/python-modules/skops/default.nix +++ b/pkgs/development/python-modules/skops/default.nix @@ -1,16 +1,21 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, - pythonOlder, hatchling, - pytestCheckHook, - pytest-cov-stub, huggingface-hub, matplotlib, + numpy, + packaging, pandas, + prettytable, + pytest-cov-stub, + pytestCheckHook, + pythonOlder, + pyyaml, + rich, scikit-learn, - stdenv, streamlit, tabulate, }: @@ -30,7 +35,9 @@ buildPythonPackage rec { build-system = [ hatchling ]; dependencies = [ - huggingface-hub + numpy + packaging + prettytable scikit-learn tabulate ]; @@ -38,19 +45,22 @@ buildPythonPackage rec { nativeCheckInputs = [ matplotlib pandas - pytestCheckHook pytest-cov-stub + pytestCheckHook + pyyaml streamlit ]; + optional-dependencies = { + rich = [ rich ]; + }; enabledTestPaths = [ "skops" ]; disabledTests = [ # flaky "test_base_case_works_as_expected" + # fairlearn is not available in nixpkgs + "TestAddFairlearnMetricFrame" ]; disabledTestPaths = [ - # try to download data from Huggingface Hub: - "skops/hub_utils/tests" - "skops/card/tests" # minor output formatting issue "skops/card/_model_card.py" ] From dc881d34786a10f9a4f1af65ae062b4857c16ac0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 28 Aug 2025 10:05:12 +0200 Subject: [PATCH 2/3] python313Packages.skops: update formatting --- pkgs/development/python-modules/skops/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/skops/default.nix b/pkgs/development/python-modules/skops/default.nix index 2f6045014129..ed6cf8b9c555 100644 --- a/pkgs/development/python-modules/skops/default.nix +++ b/pkgs/development/python-modules/skops/default.nix @@ -50,16 +50,20 @@ buildPythonPackage rec { pyyaml streamlit ]; + optional-dependencies = { rich = [ rich ]; - }; + }; + enabledTestPaths = [ "skops" ]; + disabledTests = [ # flaky "test_base_case_works_as_expected" # fairlearn is not available in nixpkgs "TestAddFairlearnMetricFrame" ]; + disabledTestPaths = [ # minor output formatting issue "skops/card/_model_card.py" @@ -68,19 +72,21 @@ buildPythonPackage rec { # Segfaults on darwin "skops/io/tests/test_persist.py" ]; + pytestFlags = [ # Warning from scipy.optimize in skops/io/tests/test_persist.py::test_dump_and_load_with_file_wrapper # https://github.com/skops-dev/skops/issues/479 "-Wignore::DeprecationWarning" ]; + pythonImportsCheck = [ "skops" ]; meta = { description = "Library for saving/loading, sharing, and deploying scikit-learn based models"; - mainProgram = "skops"; homepage = "https://skops.readthedocs.io/en/stable"; changelog = "https://github.com/skops-dev/skops/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.bcdarwin ]; + mainProgram = "skops"; }; } From 3bc770c7d4f67d48408d905400d8fd50ff5b9b45 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 28 Aug 2025 10:17:54 +0200 Subject: [PATCH 3/3] python313Packages.fastapi-mcp: use pytest-asyncio_0 --- pkgs/development/python-modules/fastapi-mcp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/fastapi-mcp/default.nix b/pkgs/development/python-modules/fastapi-mcp/default.nix index 844ba0f6de2d..bc9c51e8f0d3 100644 --- a/pkgs/development/python-modules/fastapi-mcp/default.nix +++ b/pkgs/development/python-modules/fastapi-mcp/default.nix @@ -20,7 +20,7 @@ # tests coverage, - pytest-asyncio, + pytest-asyncio_0, pytest-cov-stub, pytestCheckHook, }: @@ -59,7 +59,7 @@ buildPythonPackage rec { nativeCheckInputs = [ coverage - pytest-asyncio + pytest-asyncio_0 pytest-cov-stub pytestCheckHook ];