{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, importlib-metadata, sphinx, pyenchant, setuptools, setuptools-scm, wheel, }: buildPythonPackage rec { pname = "sphinxcontrib-spelling"; version = "8.0.1"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "sphinx-contrib"; repo = "spelling"; tag = version; hash = "sha256-gN+FkgIzk7wG/ni+DzaeiePjCiK9k7Jrn2IUDgy8DOg="; }; nativeBuildInputs = [ setuptools setuptools-scm wheel ]; propagatedBuildInputs = [ sphinx pyenchant ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # No tests included doCheck = false; pythonImportsCheck = [ "sphinxcontrib.spelling" ]; pythonNamespaces = [ "sphinxcontrib" ]; meta = with lib; { description = "Sphinx spelling extension"; homepage = "https://github.com/sphinx-contrib/spelling"; changelog = "https://github.com/sphinx-contrib/spelling/blob/${version}/docs/source/history.rst"; license = licenses.bsd2; maintainers = [ ]; }; }