python3Packages.textacy: fix build
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
cachetools,
|
||||
cytoolz,
|
||||
fetchPypi,
|
||||
@@ -10,7 +12,6 @@
|
||||
matplotlib,
|
||||
networkx,
|
||||
numpy,
|
||||
pyemd,
|
||||
pyphen,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
@@ -20,26 +21,29 @@
|
||||
tqdm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "textacy";
|
||||
version = "0.13.0";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-a+AkSMCPx9fE7fhSiQBuOaSlPvdHIB/yS2dcZS9AxoY=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "chartbeat-labs";
|
||||
repo = "textacy";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-QVxC9oV1X5ifQ9VVYissppni1A8LACz/FVgaoG5/GFU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cachetools
|
||||
cytoolz
|
||||
floret
|
||||
jellyfish
|
||||
joblib
|
||||
matplotlib
|
||||
networkx
|
||||
numpy
|
||||
pyemd
|
||||
pyphen
|
||||
requests
|
||||
scikit-learn
|
||||
@@ -48,6 +52,10 @@ buildPythonPackage rec {
|
||||
tqdm
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
vis = [ matplotlib ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
enabledTestPaths = [
|
||||
@@ -64,6 +72,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Higher-level text processing, built on spaCy";
|
||||
homepage = "https://textacy.readthedocs.io/";
|
||||
changelog = "https://github.com/chartbeat-labs/textacy/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user