python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / editdistance-s / default.nix
blobe0ae8a91703db85d720664313a5cb2fc8ff9620e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   cffi,
7 }:
9 buildPythonPackage rec {
10   pname = "editdistance-s";
11   version = "1.0.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "asottile";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg";
19   };
21   propagatedNativeBuildInputs = [ cffi ];
23   propagatedBuildInputs = [ cffi ];
25   nativeCheckInputs = [ pytestCheckHook ];
27   pythonImportsCheck = [ "editdistance_s" ];
29   meta = with lib; {
30     description = "Fast implementation of the edit distance (Levenshtein distance)";
31     homepage = "https://github.com/asottile/editdistance-s";
32     license = with licenses; [ mit ];
33     maintainers = with maintainers; [ austinbutler ];
34   };