1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "docstring-to-markdown";
9 version = "0.10";
10
11 src = fetchFromGitHub {
12 owner = "python-lsp";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "0rflkbms94wkcypjcnz30bc4w4iww91h7sqq3j2b6ypzl4g48csa";
16 };
17
18 patches = [
19 # So pytest-flake8 and pytest-cov won't be needed
20 ./remove-coverage-tests.patch
21 ];
22
23 checkInputs = [
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [
28 "docstring_to_markdown"
29 ];
30
31 meta = with lib; {
32 homepage = "https://github.com/python-lsp/docstring-to-markdown";
33 description = "On the fly conversion of Python docstrings to markdown";
34 license = licenses.lgpl2Plus;
35 maintainers = with maintainers; [ doronbehar ];
36 };
37}