From 6d9600d379142912c56b5af5548ee70ebf5f27f4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 15 Jun 2024 02:14:27 +0200 Subject: [PATCH 1/2] python312Packages.spacy: clean source for annotation test --- .../python-modules/spacy/annotation-test/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/spacy/annotation-test/default.nix b/pkgs/development/python-modules/spacy/annotation-test/default.nix index 02aad304a1e6..cb8a97aa568f 100644 --- a/pkgs/development/python-modules/spacy/annotation-test/default.nix +++ b/pkgs/development/python-modules/spacy/annotation-test/default.nix @@ -1,4 +1,5 @@ { + lib, stdenv, pytest, spacy-models, @@ -7,7 +8,12 @@ stdenv.mkDerivation { name = "spacy-annotation-test"; - src = ./.; + src = lib.fileset.toSource { + root = ./.; + fileset = lib.fileset.unions [ + ./annotate.py + ]; + }; dontConfigure = true; dontBuild = true; From 803ca835fb45c52ec68d48475989c9c6d8a5fbb8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 15 Jun 2024 02:20:47 +0200 Subject: [PATCH 2/2] python312Packages.spacy-transformers: clean source for annotation test --- .../spacy-transformers/annotation-test/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix b/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix index 51d0388f72ca..d6d1094447d2 100644 --- a/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix +++ b/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix @@ -1,4 +1,5 @@ { + lib, stdenv, pytest, spacy-models, @@ -7,7 +8,12 @@ stdenv.mkDerivation { name = "spacy-transformers-annotation-test"; - src = ./.; + src = lib.fileset.toSource { + root = ./.; + fileset = lib.fileset.unions [ + ./annotate.py + ]; + }; dontConfigure = true; dontBuild = true;