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