1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flit-core, 6 sphinx, 7 pytestCheckHook, 8 lxml, 9}: 10 11buildPythonPackage rec { 12 pname = "sphinx-argparse"; 13 version = "0.5.2"; 14 pyproject = true; 15 16 src = fetchPypi { 17 pname = "sphinx_argparse"; 18 inherit version; 19 hash = "sha256-5TUvj6iUtvtv2gSYuiip+NQ1lx70u8GmycZBTnZE8DI="; 20 }; 21 22 build-system = [ flit-core ]; 23 24 dependencies = [ sphinx ]; 25 26 nativeCheckInputs = [ 27 lxml 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "sphinxarg" ]; 32 33 meta = { 34 description = "Sphinx extension that automatically documents argparse commands and options"; 35 homepage = "https://github.com/ashb/sphinx-argparse"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ clacke ]; 38 }; 39}