1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 importlib-metadata, 6 pytestCheckHook, 7 setuptools, 8 typing-extensions, 9}: 10 11buildPythonPackage rec { 12 pname = "docstring-to-markdown"; 13 version = "0.17"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "python-lsp"; 18 repo = "docstring-to-markdown"; 19 tag = "v${version}"; 20 hash = "sha256-conwwToBrlDL487zf2ldCOxFFKxP1a8LnU0KocI8riI="; 21 }; 22 23 postPatch = '' 24 sed -i -E '/--(cov|flake8)/d' setup.cfg 25 ''; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 importlib-metadata 31 typing-extensions 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "docstring_to_markdown" ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/python-lsp/docstring-to-markdown"; 40 description = "On the fly conversion of Python docstrings to markdown"; 41 changelog = "https://github.com/python-lsp/docstring-to-markdown/releases/tag/${src.tag}"; 42 license = licenses.lgpl2Plus; 43 maintainers = with maintainers; [ doronbehar ]; 44 }; 45}