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