2021-01-25 08:26:54 +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-11-21 07:05:23 +00:00
|
|
|
version = "7.1.0";
|
2018-10-27 22:32:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-21 07:05:23 +00:00
|
|
|
sha256 = "5b4240808a6d21eab9c49e69ad5ac0cb3efb03fe2e94763d23c860f85ec6a799";
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-27 22:32:44 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|