1{ lib
2, buildPythonPackage
3, fetchPypi
4, gobject-introspection
5, gtk3
6, poetry-core
7, pyenchant
8, pygobject3
9}:
10
11buildPythonPackage rec {
12 pname = "pygtkspellcheck";
13 version = "5.0.2";
14 format = "pyproject";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-rWV/ghoMWHOAmT8ablwOjJSEhtvPqT/UdoZBXL5Nj0s=";
19 };
20
21 nativeBuildInputs = [
22 gobject-introspection
23 poetry-core
24 ];
25
26 propagatedBuildInputs = [
27 pyenchant
28 pygobject3
29 gtk3
30 ];
31
32 doCheck = false; # there are no tests
33
34 pythonImportsCheck = [
35 "gtkspellcheck"
36 ];
37
38 meta = with lib; {
39 homepage = "https://github.com/koehlma/pygtkspellcheck";
40 description = "A Python spell-checking library for GtkTextViews based on Enchant";
41 license = licenses.gpl3Plus;
42 maintainers = with maintainers; [ xfix ];
43 };
44}