From 56ca47ff3dfd24d45e75d385bac367afe23884db Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Jun 2021 01:22:06 +0200 Subject: [PATCH] python3Packages.textacy: 0.10.1 -> 0.11.0 --- .../python-modules/textacy/default.nix | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/textacy/default.nix b/pkgs/development/python-modules/textacy/default.nix index 9f9fe685c95..5c8928a385d 100644 --- a/pkgs/development/python-modules/textacy/default.nix +++ b/pkgs/development/python-modules/textacy/default.nix @@ -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;