at 22.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pythonOlder 6, Mako 7, markdown 8, setuptools-git 9, setuptools-scm 10}: 11 12buildPythonPackage rec { 13 pname = "pdoc3"; 14 version = "0.10.0"; 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "5f22e7bcb969006738e1aa4219c75a32f34c2d62d46dc9d2fb2d3e0b0287e4b7"; 20 }; 21 22 patches = [ 23 (fetchpatch { 24 # test_Class_params fails in 0.10.0 25 # https://github.com/pdoc3/pdoc/issues/355 26 url = "https://github.com/pdoc3/pdoc/commit/4aa70de2221a34a3003a7e5f52a9b91965f0e359.patch"; 27 sha256 = "07sbf7bh09vgd5z1lbay604rz7rhg88414whs6iy60wwbvkz5c2v"; 28 }) 29 ]; 30 31 nativeBuildInputs = [ 32 setuptools-git 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 Mako 38 markdown 39 ]; 40 41 meta = with lib; { 42 description = "Auto-generate API documentation for Python projects."; 43 homepage = "https://pdoc3.github.io/pdoc/"; 44 license = with licenses; [ agpl3Plus ]; 45 maintainers = with maintainers; [ catern ]; 46 }; 47}