nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 cffi,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "ukkonen";
12 version = "1.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "asottile";
17 repo = "ukkonen";
18 tag = "v${finalAttrs.version}";
19 hash = "sha256-vXyOLAiY92Df7g57quiSnOz8yhaIsm8MTB6Fbiv6axQ=";
20 };
21
22 build-system = [
23 cffi
24 setuptools
25 ];
26
27 dependencies = [ cffi ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "ukkonen" ];
32
33 meta = {
34 description = "Python implementation of bounded Levenshtein distance (Ukkonen)";
35 homepage = "https://github.com/asottile/ukkonen";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ fab ];
38 };
39})