1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, importlib-metadata
6, sphinx
7, pyenchant
8, pbr
9}:
10
11buildPythonPackage rec {
12 pname = "sphinxcontrib-spelling";
13 version = "7.2.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "f2578653014931b32c8c30d1a9930d998ae053b0d8b7adfbea0eb95a63e7a737";
18 };
19
20 propagatedBuildInputs = [ sphinx pyenchant pbr ]
21 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
22
23 # No tests included
24 doCheck = false;
25
26 meta = with lib; {
27 description = "Sphinx spelling extension";
28 homepage = "https://bitbucket.org/dhellmann/sphinxcontrib-spelling";
29 maintainers = with maintainers; [ ];
30 license = licenses.bsd2;
31 };
32
33}