python3Packages.textacy: 0.10.1 -> 0.11.0

master
Fabian Affolter 2021-06-07 01:22:06 +02:00 committed by Jonathan Ringer
parent ffb7cfcfad
commit 56ca47ff3d
1 changed files with 26 additions and 18 deletions

View File

@ -1,34 +1,39 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
{ lib
, buildPythonPackage
, cachetools
, cytoolz
, fetchPypi
, jellyfish
, joblib
, matplotlib
, networkx
, numpy
, pyemd
, pyphen
, pytest
, pytestCheckHook
, pythonOlder
, requests
, scikit-learn
, scipy
, spacy
, srsly
, tqdm
}:
buildPythonPackage rec {
pname = "textacy";
version = "0.10.1";
disabled = isPy27;
version = "0.11.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "ff72adc6dbb85db6981324e226fff77830da57d7fe7e4adb2cafd9dc2a8bfa7d";
sha256 = "sha256-d/tyTCewoERA15iBv4H2LORFzgco15fnnN1sneeGuF4=";
};
propagatedBuildInputs = [
cachetools
cytoolz
jellyfish
joblib
matplotlib
networkx
numpy
@ -38,22 +43,25 @@ buildPythonPackage rec {
scikit-learn
scipy
spacy
srsly
tqdm
];
checkInputs = [ pytest ];
# almost all tests have to deal with downloading a dataset, only test pure tests
checkPhase = ''
pytest tests/test_text_utils.py \
tests/test_utils.py \
tests/preprocessing \
tests/datasets/test_base_dataset.py
'';
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
# Almost all tests have to deal with downloading a dataset, only test pure tests
"tests/test_constants.py"
"tests/preprocessing/test_normalize.py"
"tests/similarity/test_edits.py"
"tests/preprocessing/test_resources.py"
"tests/preprocessing/test_replace.py"
];
pythonImportsCheck = [ "textacy" ];
meta = with lib; {
# scikit-learn in pythonPackages is too new for textacy
# remove as soon as textacy support scikit-learn >= 0.24
broken = true;
description = "Higher-level text processing, built on spaCy";
homepage = "https://textacy.readthedocs.io/";
license = licenses.asl20;