Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, importlib-metadata 6, sphinx 7, pyenchant 8, setuptools 9, setuptools-scm 10, wheel 11}: 12 13buildPythonPackage rec { 14 pname = "sphinxcontrib-spelling"; 15 version = "8.0.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-GZ0KFpAq2Aw4fClm3J6xD1ZbH7FczOFyEEAtt8JEPlw="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 28 wheel 29 ]; 30 31 propagatedBuildInputs = [ 32 sphinx 33 pyenchant 34 ] ++ lib.optionals (pythonOlder "3.8") [ 35 importlib-metadata 36 ]; 37 38 # No tests included 39 doCheck = false; 40 41 pythonImportsCheck = [ 42 "sphinxcontrib.spelling" 43 ]; 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 = with maintainers; [ ]; 53 }; 54}