1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pfzy";
10 version = "0.3.4";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "kazhala";
17 repo = "pfzy";
18 rev = "refs/tags/${version}";
19 hash = "sha256-+Ba/yLUfT0SPPAJd+pKyjSvNrVpEwxW3xEKFx4JzpYk=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 pythonImportsCheck = [
27 "pfzy"
28 ];
29
30 meta = with lib; {
31 description = "Python port of the fzy fuzzy string matching algorithm";
32 homepage = "https://github.com/kazhala/pfzy";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fab ];
35 };
36}