Merge pull request #68093 from jonringer/bump-textacy
python3Packages.textacy: 0.6.3 -> 0.9.1
This commit is contained in:
commit
88c42a26a2
|
@ -1,69 +1,59 @@
|
||||||
{ stdenv
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||||
, buildPythonPackage
|
|
||||||
, isPy27
|
|
||||||
, fetchPypi
|
|
||||||
, cachetools
|
, cachetools
|
||||||
, cld2-cffi
|
|
||||||
, cytoolz
|
, cytoolz
|
||||||
, ftfy
|
, jellyfish
|
||||||
, ijson
|
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, networkx
|
, networkx
|
||||||
, numpy
|
, numpy
|
||||||
, pyemd
|
, pyemd
|
||||||
, pyphen
|
, pyphen
|
||||||
, python-Levenshtein
|
, pytest
|
||||||
, requests
|
, requests
|
||||||
, scikitlearn
|
, scikitlearn
|
||||||
, scipy
|
, scipy
|
||||||
, spacy
|
, spacy
|
||||||
, tqdm
|
, srsly
|
||||||
, unidecode
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "textacy";
|
pname = "textacy";
|
||||||
version = "0.6.3";
|
version = "0.9.1";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "50402545ac92b1a931c2365e341cb35c4ebe5575525f1dcc5265901ff3895a5f";
|
sha256 = "1jhj02g6kh5vc0z4az7n547siav3gj5571bqpzdryskj6bsma2z1";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cachetools
|
cachetools
|
||||||
cld2-cffi
|
|
||||||
cytoolz
|
cytoolz
|
||||||
ftfy
|
jellyfish
|
||||||
ijson
|
|
||||||
matplotlib
|
matplotlib
|
||||||
networkx
|
networkx
|
||||||
numpy
|
numpy
|
||||||
pyemd
|
pyemd
|
||||||
pyphen
|
pyphen
|
||||||
python-Levenshtein
|
|
||||||
requests
|
requests
|
||||||
scikitlearn
|
scikitlearn
|
||||||
scipy
|
scipy
|
||||||
spacy
|
spacy
|
||||||
tqdm
|
srsly
|
||||||
unidecode
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
checkInputs = [ pytest ];
|
||||||
substituteInPlace setup.py \
|
# almost all tests have to deal with downloading a dataset, only test pure tests
|
||||||
--replace "'ftfy>=4.2.0,<5.0.0'," "'ftfy>=5.0.0',"
|
checkPhase = ''
|
||||||
|
pytest tests/test_text_utils.py \
|
||||||
|
tests/test_utils.py \
|
||||||
|
tests/preprocessing \
|
||||||
|
tests/datasets/test_base_dataset.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # tests want to download data files
|
meta = with lib; {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Higher-level text processing, built on spaCy";
|
description = "Higher-level text processing, built on spaCy";
|
||||||
homepage = "http://textacy.readthedocs.io/";
|
homepage = "http://textacy.readthedocs.io/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ rvl ];
|
maintainers = with maintainers; [ rvl ];
|
||||||
# ftfy and jellyfish no longer support python2
|
|
||||||
# latest scikitlearn not supported for this: https://github.com/chartbeat-labs/textacy/issues/260
|
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue