Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / docstring-to-markdown / default.nix
blob2832228394c31de472b11de9ed75104928ebd830
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "docstring-to-markdown";
10   version = "0.12";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "python-lsp";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-c0gk1s/+25+pWUpi8geDQZ0f9JBeuvvFQ9MFskRnY6U=";
20   };
22   patches = [
23     # So pytest-flake8 and pytest-cov won't be needed
24     ./remove-coverage-tests.patch
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "docstring_to_markdown"
33   ];
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   };