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, pbr 9}: 10 11buildPythonPackage rec { 12 pname = "sphinxcontrib-spelling"; 13 version = "8.0.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-GZ0KFpAq2Aw4fClm3J6xD1ZbH7FczOFyEEAtt8JEPlw="; 21 }; 22 23 nativeBuildInputs = [ 24 pbr 25 ]; 26 27 propagatedBuildInputs = [ 28 sphinx 29 pyenchant 30 ] ++ lib.optionals (pythonOlder "3.8") [ 31 importlib-metadata 32 ]; 33 34 # No tests included 35 doCheck = false; 36 37 pythonImportsCheck = [ 38 "sphinxcontrib.spelling" 39 ]; 40 41 meta = with lib; { 42 description = "Sphinx spelling extension"; 43 homepage = "https://github.com/sphinx-contrib/spelling"; 44 changelog = "https://github.com/sphinx-contrib/spelling/blob/${version}/docs/source/history.rst"; 45 license = licenses.bsd2; 46 maintainers = with maintainers; [ ]; 47 }; 48}