diff options
author | Matt Melling <mattmelling@fastmail.com> | 2021-05-07 22:04:10 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-08 11:08:46 -0700 |
commit | 94698a56240fa906ba3e14938df89e572f462f14 (patch) | |
tree | 3828b611465dc244689ea07ace400de4cbccd750 /pkgs | |
parent | ff95da3ab50fcf593f516c24ecabef1784cbc9c8 (diff) |
python3Packages.spacy: add spacy_legacy dependency
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pathy/default.nix | 3 | ||||
-rw-r--r-- | pkgs/development/python-modules/spacy/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/python-modules/spacy/legacy.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
4 files changed, 32 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pathy/default.nix b/pkgs/development/python-modules/pathy/default.nix index c65741654911e..714e6945df5f2 100644 --- a/pkgs/development/python-modules/pathy/default.nix +++ b/pkgs/development/python-modules/pathy/default.nix @@ -22,7 +22,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ smart_open typer google-cloud-storage ]; postPatch = '' - substituteInPlace requirements.txt --replace "smart-open>=2.2.0,<4.0.0" "smart-open>=2.2.0" + substituteInPlace requirements.txt \ + --replace "smart-open>=2.2.0,<4.0.0" "smart-open>=2.2.0" ''; checkInputs = [ pytestCheckHook mock ]; diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index 077ac0e6a3bc6..96f7f78f92840 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -16,6 +16,7 @@ , requests , setuptools , srsly +, spacy-legacy , thinc , wasabi }: @@ -41,6 +42,7 @@ buildPythonPackage rec { requests setuptools srsly + spacy-legacy thinc wasabi ] ++ lib.optional (pythonOlder "3.4") pathlib; diff --git a/pkgs/development/python-modules/spacy/legacy.nix b/pkgs/development/python-modules/spacy/legacy.nix new file mode 100644 index 0000000000000..f8b011d83ccf0 --- /dev/null +++ b/pkgs/development/python-modules/spacy/legacy.nix @@ -0,0 +1,26 @@ +{ lib +, fetchPypi +, buildPythonPackage +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "spacy-legacy"; + version = "3.0.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-Uy94rjFllSj622RTzd6UJaQmIniCw4gpeq/X57QcIpA="; + }; + + # checkInputs = [ pytestCheckHook spacy ]; + doCheck = false; + pythonImportsCheck = [ "spacy_legacy" ]; + + meta = with lib; { + description = "A Path interface for local and cloud bucket storage"; + homepage = "https://github.com/justindujardin/pathy"; + license = licenses.asl20; + maintainers = with maintainers; [ melling ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2ad9280adb16e..b9cda5ce3a390 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7613,6 +7613,8 @@ in { spacy = callPackage ../development/python-modules/spacy { }; + spacy-legacy = callPackage ../development/python-modules/spacy/legacy.nix { }; + spacy_models = callPackage ../development/python-modules/spacy/models.nix { }; spake2 = callPackage ../development/python-modules/spake2 { }; |