e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
42 lines
970 B
Nix
42 lines
970 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "docstring-to-markdown";
|
|
version = "0.13";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-lsp";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-r+TRYofTRDCBC0s+bJRhagepEQbbj5WeI5FRtaVPt24=";
|
|
};
|
|
|
|
patches = [
|
|
# So pytest-flake8 and pytest-cov won't be needed
|
|
./remove-coverage-tests.patch
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
changelog = "https://github.com/python-lsp/docstring-to-markdown/releases/tag/v${version}";
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|