at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 pythonOlder, 7 8 poetry-core, 9}: 10 11buildPythonPackage rec { 12 pname = "spylls"; 13 version = "0.1.7"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-cEWJLcvTJNNoX2nFp2AGPnj7g5kTckzhgHfPCgyT8iA="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace-fail poetry.masonry.api poetry.core.masonry.api \ 26 --replace-fail "poetry>=" "poetry-core>=" 27 ''; 28 29 build-system = [ poetry-core ]; 30 31 # no unit tests in source distribution... 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "spylls.hunspell" 36 "spylls.hunspell.readers" 37 "spylls.hunspell.data" 38 "spylls.hunspell.algo.capitalization" 39 "spylls.hunspell.algo.trie" 40 "spylls.hunspell.algo.ngram_suggest" 41 "spylls.hunspell.algo.phonet_suggest" 42 "spylls.hunspell.algo.permutations" 43 "spylls.hunspell.algo.string_metrics" 44 ]; 45 46 meta = with lib; { 47 description = "Pure Python spell-checker, (almost) full port of Hunspell"; 48 homepage = "https://github.com/zverok/spylls"; 49 changelog = "https://github.com/zverok/spylls/blob/master/CHANGELOG.rst"; 50 license = licenses.mpl20; 51 maintainers = with maintainers; [ vizid ]; 52 }; 53}