Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions pkgs/development/python-modules/spylls/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchPypi

, pythonOlder

, poetry-core
}:

buildPythonPackage rec {
pname = "spylls";
version = "0.1.7";
pyproject = true;

disabled = pythonOlder "3.7";

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 = with lib; {
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 = licenses.mpl20;
maintainers = with maintainers; [ vizid ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14026,6 +14026,8 @@ self: super: with self; {

spyder-kernels = callPackage ../development/python-modules/spyder-kernels { };

spylls = callPackage ../development/python-modules/spylls { };

spyse-python = callPackage ../development/python-modules/spyse-python { };

spython = callPackage ../development/python-modules/spython { };
Expand Down