aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix b/nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix
new file mode 100644
index 00000000000..1b066ff3c39
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, pytest, spacy_models }:
+
+stdenv.mkDerivation {
+ name = "spacy-annotation-test";
+
+ src = ./.;
+
+ dontConfigure = true;
+ dontBuild = true;
+ doCheck = true;
+
+ checkInputs = [ pytest spacy_models.en_core_web_sm ];
+
+ checkPhase = ''
+ pytest annotate.py
+ '';
+
+ installPhase = ''
+ touch $out
+ '';
+
+ meta.timeout = 60;
+}