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