blob: 6f7af538369cb2a0cf8b2bd0c58bdd5ed1b0413c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
setuptools,
# dependencies
numpy,
six,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "py-stringmatching";
version = "0.4.6";
src = fetchFromGitHub {
owner = "anhaidgroup";
repo = "py_stringmatching";
tag = "v${version}";
hash = "sha256-gQiIIN0PeeM81ZHsognPFierf9ZXasq/JqxsYZmLAnU=";
};
pyproject = true;
build-system = [
setuptools
cython
];
dependencies = [
numpy
six
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
cd $out
'';
pythonImportsCheck = [ "py_stringmatching" ];
meta = {
broken = lib.versionAtLeast numpy.version "2";
description = "Python string matching library including string tokenizers and string similarity measures";
homepage = "https://github.com/anhaidgroup/py_stringmatching";
changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt";
license = lib.licenses.bsd3;
};
}
|