python3Packages.spacy_models: use pythonImportCheck
For each model, check whether we can actually import the model after building.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user