2018-10-27 22:32:44 +01:00
|
|
|
{ stdenv
|
2020-11-05 23:40:20 +00:00
|
|
|
, lib
|
2018-10-27 22:32:44 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-05 23:40:20 +00:00
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
2018-10-27 22:32:44 +01:00
|
|
|
, sphinx
|
|
|
|
, pyenchant
|
|
|
|
, pbr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-spelling";
|
2020-08-16 18:31:16 +01:00
|
|
|
version = "5.2.2";
|
2018-10-27 22:32:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:16 +01:00
|
|
|
sha256 = "c8250ff02e6033c3aeabc41e91dc185168fecefb0c5722aaa3e2055a829e1e4c";
|
2018-10-27 22:32:44 +01:00
|
|
|
};
|
|
|
|
|
2020-11-05 23:40:20 +00:00
|
|
|
propagatedBuildInputs = [ sphinx pyenchant pbr ]
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2018-10-27 22:32:44 +01:00
|
|
|
|
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Sphinx spelling extension";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://bitbucket.org/dhellmann/sphinxcontrib-spelling";
|
2018-10-27 22:32:44 +01:00
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|