blob: 4210f5499d282207f356f3afd6658a7227ac80e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
isPy3k,
pytest,
unicodecsv,
rustPlatform,
libiconv,
}:
buildPythonPackage rec {
pname = "jellyfish";
version = "1.0.4";
disabled = !isPy3k;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-cqq7O+3VE83SBxIkL9URc7WZcsCxRregucbzLxZWKT8=";
};
nativeBuildInputs = with rustPlatform; [
maturinBuildHook
cargoSetupHook
];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}-rust-dependencies";
hash = "sha256-HtzgxTO6tbN/tohaiTm9B9jrFYGTt1Szo9qRzpcy8BA=";
};
nativeCheckInputs = [
pytest
unicodecsv
];
meta = {
homepage = "https://github.com/sunlightlabs/jellyfish";
description = "Approximate and phonetic matching of strings";
maintainers = with lib.maintainers; [ koral ];
};
}
|