depot/third_party/nixpkgs/pkgs/development/python-modules/docstring-to-markdown/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

42 lines
964 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "docstring-to-markdown";
version = "0.11";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-lsp";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-4Jl1XJpxwbxGWxdF4bOerjHyzHCIHtrydklwwk1WGs4=";
};
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";
changelog = "https://github.com/python-lsp/docstring-to-markdown/releases/tag/v${version}";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ doronbehar ];
};
}