2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
2020-11-19 00:13:47 +00:00
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-19 00:13:47 +00:00
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
, sphinx
|
|
|
|
, pyenchant
|
|
|
|
, pbr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-spelling";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "5.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "c8250ff02e6033c3aeabc41e91dc185168fecefb0c5722aaa3e2055a829e1e4c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
propagatedBuildInputs = [ sphinx pyenchant pbr ]
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Sphinx spelling extension";
|
|
|
|
homepage = "https://bitbucket.org/dhellmann/sphinxcontrib-spelling";
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|