94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
36 lines
688 B
Nix
36 lines
688 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pfzy";
|
|
version = "0.3.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kazhala";
|
|
repo = "pfzy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-+Ba/yLUfT0SPPAJd+pKyjSvNrVpEwxW3xEKFx4JzpYk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pfzy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python port of the fzy fuzzy string matching algorithm";
|
|
homepage = "https://github.com/kazhala/pfzy";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|