nixpkgs/pkgs/development/python-modules/textacy/default.nix

71 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2017-09-13 01:01:01 +01:00
, cachetools
, cytoolz
, fetchPypi
, jellyfish
, joblib
2017-09-13 01:01:01 +01:00
, matplotlib
, networkx
, numpy
, pyemd
, pyphen
, pytestCheckHook
, pythonOlder
2017-09-13 01:01:01 +01:00
, requests
, scikit-learn
2017-09-13 01:01:01 +01:00
, scipy
, spacy
, tqdm
2017-09-13 01:01:01 +01:00
}:
buildPythonPackage rec {
pname = "textacy";
version = "0.12.0";
disabled = pythonOlder "3.7";
2017-09-13 01:01:01 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "2c92bdd6b47305447b64e4cb6cc43c11675f021f910a8074bc8149dbf5325e5b";
2017-09-13 01:01:01 +01:00
};
propagatedBuildInputs = [
cachetools
cytoolz
jellyfish
joblib
2017-09-13 01:01:01 +01:00
matplotlib
networkx
numpy
pyemd
pyphen
requests
scikit-learn
2017-09-13 01:01:01 +01:00
scipy
spacy
tqdm
2017-09-13 01:01:01 +01:00
];
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" ];
2019-01-28 20:20:41 +00:00
meta = with lib; {
2017-09-13 01:01:01 +01:00
description = "Higher-level text processing, built on spaCy";
homepage = "https://textacy.readthedocs.io/";
2017-09-13 01:01:01 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ rvl ];
};
}