From 2355f7f83bef9cf62fb9fe8d59df0fd8a5d32b7b Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 28 Jul 2025 10:06:52 -0700 Subject: [PATCH 1/3] python3Packages.spacy: add sarahec as maintainer --- pkgs/development/python-modules/spacy/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index 8c76a932c8bd..fdae52c0fcb9 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -142,7 +142,7 @@ buildPythonPackage rec { homepage = "https://github.com/explosion/spaCy"; changelog = "https://github.com/explosion/spaCy/releases/tag/release-v${version}"; license = lib.licenses.mit; - maintainers = [ ]; + maintainers = with lib.maintainers; [ sarahec ]; mainProgram = "spacy"; }; } From 99f9086ffedf0a2ad9d2222a677c577cb1a6c236 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 28 Jul 2025 10:40:11 -0700 Subject: [PATCH 2/3] python3Packages.spacy: disable test that expects external (missing/outdated) files --- pkgs/development/python-modules/spacy/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index fdae52c0fcb9..a3730425ef92 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -113,6 +113,11 @@ buildPythonPackage rec { "test_download_compatibility" "test_validate_compatibility_table" "test_project_assets" + "test_find_available_port" + + # Tests for presence of outdated (and thus missing) spacy models + # https://github.com/explosion/spaCy/issues/13856 + "test_registry_entries" ]; pythonImportsCheck = [ "spacy" ]; From 913b9abf02226efc75feaf88e7d05a9e5716ba69 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 28 Jul 2025 10:42:14 -0700 Subject: [PATCH 3/3] python3Packages.spacy: allow local networking on Darwin --- pkgs/development/python-modules/spacy/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index a3730425ef92..fef2482b2661 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -142,6 +142,8 @@ buildPythonPackage rec { tests.annotation = callPackage ./annotation-test { }; }; + __darwinAllowLocalNetworking = true; # needed for test_find_available_port + meta = { description = "Industrial-strength Natural Language Processing (NLP)"; homepage = "https://github.com/explosion/spaCy";