Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / editdistance-s / default.nix
blobb6eca2e0242c97993188d6367a0571c96d516243
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , cffi
6 }:
8 buildPythonPackage rec {
9   pname = "editdistance-s";
10   version = "1.0.0";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "asottile";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg";
18   };
20   propagatedNativeBuildInputs = [ cffi ];
22   propagatedBuildInputs = [ cffi ];
24   nativeCheckInputs = [ pytestCheckHook ];
26   pythonImportsCheck = [ "editdistance_s" ];
28   meta = with lib; {
29     description = "Fast implementation of the edit distance (Levenshtein distance)";
30     homepage = "https://github.com/asottile/editdistance-s";
31     license = with licenses; [ mit ];
32     maintainers = with maintainers; [ austinbutler ];
33   };