python3Packages.textacy: 0.10.1 -> 0.11.0
parent
ffb7cfcfad
commit
56ca47ff3d
|
@ -1,34 +1,39 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, cachetools
|
, cachetools
|
||||||
, cytoolz
|
, cytoolz
|
||||||
|
, fetchPypi
|
||||||
, jellyfish
|
, jellyfish
|
||||||
|
, joblib
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, networkx
|
, networkx
|
||||||
, numpy
|
, numpy
|
||||||
, pyemd
|
, pyemd
|
||||||
, pyphen
|
, pyphen
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
, scikit-learn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, spacy
|
, spacy
|
||||||
, srsly
|
, tqdm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "textacy";
|
pname = "textacy";
|
||||||
version = "0.10.1";
|
version = "0.11.0";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "ff72adc6dbb85db6981324e226fff77830da57d7fe7e4adb2cafd9dc2a8bfa7d";
|
sha256 = "sha256-d/tyTCewoERA15iBv4H2LORFzgco15fnnN1sneeGuF4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cachetools
|
cachetools
|
||||||
cytoolz
|
cytoolz
|
||||||
jellyfish
|
jellyfish
|
||||||
|
joblib
|
||||||
matplotlib
|
matplotlib
|
||||||
networkx
|
networkx
|
||||||
numpy
|
numpy
|
||||||
|
@ -38,22 +43,25 @@ buildPythonPackage rec {
|
||||||
scikit-learn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
spacy
|
spacy
|
||||||
srsly
|
tqdm
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
# almost all tests have to deal with downloading a dataset, only test pure tests
|
pytestCheckHook
|
||||||
checkPhase = ''
|
];
|
||||||
pytest tests/test_text_utils.py \
|
|
||||||
tests/test_utils.py \
|
pytestFlagsArray = [
|
||||||
tests/preprocessing \
|
# Almost all tests have to deal with downloading a dataset, only test pure tests
|
||||||
tests/datasets/test_base_dataset.py
|
"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; {
|
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";
|
description = "Higher-level text processing, built on spaCy";
|
||||||
homepage = "https://textacy.readthedocs.io/";
|
homepage = "https://textacy.readthedocs.io/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
Loading…
Reference in New Issue