From 9b55e5bfcbbe1d152a0d19a1ff93d85a0c18f85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Tue, 18 Aug 2020 19:32:01 +0200 Subject: [PATCH] python3Packages.spacy_models: use pythonImportCheck For each model, check whether we can actually import the model after building. --- pkgs/development/python-modules/spacy/models.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/spacy/models.nix b/pkgs/development/python-modules/spacy/models.nix index b83ae5d7ddc..c4a314ea474 100644 --- a/pkgs/development/python-modules/spacy/models.nix +++ b/pkgs/development/python-modules/spacy/models.nix @@ -14,6 +14,8 @@ let propagatedBuildInputs = [ spacy ] ++ lib.optionals (lang == "zh") [ jieba pkuseg ]; + pythonImportsCheck = [ pname ]; + meta = with stdenv.lib; { description = "Models for the spaCy NLP library"; homepage = "https://github.com/explosion/spacy-models";