blob: 1bef7eeca9edc28ad02f325ad520a44d24fa0125 (
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.0";
disabled = !isPy3k;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-iBquNnGZm7B85QwnaW8pyn6ELz4SOswNtlJcmZmIG9Q=";
};
nativeBuildInputs = with rustPlatform; [
maturinBuildHook
cargoSetupHook
];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}-rust-dependencies";
hash = "sha256-Grk+n4VCPjirafcRWWI51jHw/IFUYkBtbXY739j0MFI=";
};
nativeCheckInputs = [
pytest
unicodecsv
];
meta = {
homepage = "https://github.com/sunlightlabs/jellyfish";
description = "Approximate and phonetic matching of strings";
maintainers = with lib.maintainers; [ koral ];
};
}
|