python3Packages.spacy_models: use pythonImportCheck

For each model, check whether we can actually import the model after
building.
This commit is contained in:
Daniël de Kok 2020-08-18 19:32:01 +02:00 committed by Jon
parent f8962fd92e
commit 9b55e5bfcb

View file

@ -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";