python3Packages.spacy_models: use pythonImportCheck
For each model, check whether we can actually import the model after building.
This commit is contained in:
parent
f8962fd92e
commit
9b55e5bfcb
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue