1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 importlib-metadata, 7 sphinx, 8 pyenchant, 9 setuptools, 10 setuptools-scm, 11 wheel, 12}: 13 14buildPythonPackage rec { 15 pname = "sphinxcontrib-spelling"; 16 version = "8.0.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "sphinx-contrib"; 23 repo = "spelling"; 24 tag = version; 25 hash = "sha256-gN+FkgIzk7wG/ni+DzaeiePjCiK9k7Jrn2IUDgy8DOg="; 26 }; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 wheel 32 ]; 33 34 propagatedBuildInputs = [ 35 sphinx 36 pyenchant 37 ] 38 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; 39 40 # No tests included 41 doCheck = false; 42 43 pythonImportsCheck = [ "sphinxcontrib.spelling" ]; 44 45 pythonNamespaces = [ "sphinxcontrib" ]; 46 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 = [ ]; 53 }; 54}