blob: 46a092e106f96ac052ccd93aea0f383bec4b5939 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
}:
buildPythonPackage rec {
pname = "spylls";
version = "0.1.7";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-cEWJLcvTJNNoX2nFp2AGPnj7g5kTckzhgHfPCgyT8iA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail poetry.masonry.api poetry.core.masonry.api \
--replace-fail "poetry>=" "poetry-core>="
'';
build-system = [ poetry-core ];
# no unit tests in source distribution...
doCheck = false;
pythonImportsCheck = [
"spylls.hunspell"
"spylls.hunspell.readers"
"spylls.hunspell.data"
"spylls.hunspell.algo.capitalization"
"spylls.hunspell.algo.trie"
"spylls.hunspell.algo.ngram_suggest"
"spylls.hunspell.algo.phonet_suggest"
"spylls.hunspell.algo.permutations"
"spylls.hunspell.algo.string_metrics"
];
meta = {
description = "Pure Python spell-checker, (almost) full port of Hunspell";
homepage = "https://github.com/zverok/spylls";
changelog = "https://github.com/zverok/spylls/blob/master/CHANGELOG.rst";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ vizid ];
};
}
|