python3Packages.textacy: fix build

This commit is contained in:
Lein Matsumaru
2026-07-14 15:17:22 +00:00
parent 10b334e395
commit 68dd877e3d
@@ -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 = [ ];
};
}
})