1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 mpire,
7 tqdm,
8}:
9
10buildPythonPackage rec {
11 pname = "semchunk";
12 version = "3.2.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-6kWJMEf2PfG5L1UhRKIEc+zksASsPZLP6SYB/X0ygbA=";
18 };
19
20 build-system = [
21 hatchling
22 ];
23
24 dependencies = [
25 mpire
26 tqdm
27 ];
28
29 pythonImportsCheck = [
30 "semchunk"
31 ];
32
33 meta = {
34 description = "A fast, lightweight and easy-to-use Python library for splitting text into semantically meaningful chunks";
35 homepage = "https://pypi.org/project/semchunk/";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ booxter ];
38 };
39}