blob: 90490f0e76fd774c7dec5bab4420919818a6e48d (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
hypothesis,
levenshtein,
setuptools,
}:
buildPythonPackage rec {
pname = "thefuzz";
version = "0.22.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-cTgDmn7PVA2jI3kthZLvmQKx1563jBR9TyBmTeefNoA=";
};
# Skip linting
postPatch = ''
substituteInPlace test_thefuzz.py \
--replace-fail "import pycodestyle" ""
'';
build-system = [ setuptools ];
dependencies = [ levenshtein ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
optional-dependencies = {
speedup = [ ];
};
pythonImportsCheck = [ "thefuzz" ];
disabledTests = [
# Skip linting
"test_pep8_conformance"
];
meta = {
description = "Fuzzy string matching for Python";
homepage = "https://github.com/seatgeek/thefuzz";
changelog = "https://github.com/seatgeek/thefuzz/blob/${version}/CHANGES.rst";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ sumnerevans ];
};
}
|