python312Packages.kneaddata: init at 0.7.7-alpha (#340230)
[NixPkgs.git] / pkgs / development / python-modules / docstring-to-markdown / default.nix
blob2595c6d6d15442f73d084ea82a2353e72599930f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "docstring-to-markdown";
11   version = "0.15";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "python-lsp";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-ykqY7LFIOTuAddYkKDzIltq8FpLVz4v2ZA3Y0cZH9ms=";
21   };
23   postPatch = ''
24     sed -i -E '/--(cov|flake8)/d' setup.cfg
25   '';
27   nativeCheckInputs = [ pytestCheckHook ];
29   pythonImportsCheck = [ "docstring_to_markdown" ];
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     changelog = "https://github.com/python-lsp/docstring-to-markdown/releases/tag/v${version}";
35     license = licenses.lgpl2Plus;
36     maintainers = with maintainers; [ doronbehar ];
37   };