blob: 4680cbdc0f86426fb3770522cf75242ffb046bce (
plain)
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
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
mecab,
setuptools-scm,
requests,
tqdm,
wasabi,
plac,
cython,
platformdirs,
}:
buildPythonPackage rec {
pname = "unidic";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "polm";
repo = "unidic-py";
tag = "v${version}";
hash = "sha256-srhQDXGgoIMhYuCbyQB3kF4LrODnoOqLbjBQMvhPieY=";
};
patches = [ ./fix-download-directory.patch ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "wasabi>=0.6.0,<1.0.0" "wasabi"
'';
# no tests
doCheck = false;
propagatedBuildInputs = [
requests
tqdm
wasabi
plac
platformdirs
];
nativeBuildInputs = [
cython
mecab
setuptools-scm
];
pythonImportsCheck = [ "unidic" ];
meta = {
description = "Contemporary Written Japanese dictionary";
homepage = "https://github.com/polm/unidic-py";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ laurent-f1z1 ];
};
}
|