python3.pkgs.docstring-to-markdown: init at 0.9

This commit is contained in:
Doron Behar 2021-11-10 16:49:35 +02:00
parent c935f5e0ad
commit 0a79063bac
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "docstring-to-markdown";
version = "0.9";
src = fetchFromGitHub {
owner = "python-lsp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-XVTlSqqWmvnB5nvjvgGDJmg71KKTq2hHB4//QW7ugvA=";
};
patches = [
# So pytest-flake8 and pytest-cov won't be needed
./remove-coverage-tests.patch
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"docstring_to_markdown"
];
meta = with lib; {
homepage = "https://github.com/python-lsp/docstring-to-markdown";
description = "On the fly conversion of Python docstrings to markdown";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ doronbehar ];
};
}

View File

@ -0,0 +1,16 @@
diff --git i/setup.cfg w/setup.cfg
index e880e74..e77133e 100644
--- i/setup.cfg
+++ w/setup.cfg
@@ -34,11 +34,7 @@ docstring-to-markdown = py.typed
[tool:pytest]
addopts =
--pyargs tests
- --cov docstring_to_markdown
- --cov-fail-under=98
- --cov-report term-missing:skip-covered
-p no:warnings
- --flake8
-vv
[flake8]

View File

@ -2267,6 +2267,8 @@ in {
docloud = callPackage ../development/python-modules/docloud { };
docstring-to-markdown = callPackage ../development/python-modules/docstring-to-markdown { };
docopt = callPackage ../development/python-modules/docopt { };
docopt-ng = callPackage ../development/python-modules/docopt-ng { };