1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 importlib-metadata,
7 sphinx,
8 pyenchant,
9 setuptools,
10 setuptools-scm,
11 wheel,
12}:
13
14buildPythonPackage rec {
15 pname = "sphinxcontrib-spelling";
16 version = "8.0.0";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-GZ0KFpAq2Aw4fClm3J6xD1ZbH7FczOFyEEAtt8JEPlw=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 setuptools-scm
29 wheel
30 ];
31
32 propagatedBuildInputs = [
33 sphinx
34 pyenchant
35 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
36
37 # No tests included
38 doCheck = false;
39
40 pythonImportsCheck = [ "sphinxcontrib.spelling" ];
41
42 pythonNamespaces = [ "sphinxcontrib" ];
43
44 meta = with lib; {
45 description = "Sphinx spelling extension";
46 homepage = "https://github.com/sphinx-contrib/spelling";
47 changelog = "https://github.com/sphinx-contrib/spelling/blob/${version}/docs/source/history.rst";
48 license = licenses.bsd2;
49 maintainers = [ ];
50 };
51}