python310Packages.mkdocstrings: init at 0.19.0

This commit is contained in:
Fabian Affolter 2022-06-28 20:16:30 +02:00
parent d1e0dfd0f2
commit d1261fa635
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,66 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, jinja2
, markdown
, markupsafe
, mkdocs
, mkdocs-autorefs
, pymdown-extensions
, pytestCheckHook
, pdm-pep517
, pythonOlder
}:
buildPythonApplication rec {
pname = "mkdocstrings";
version = "0.19.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = pname;
rev = version;
sha256 = "sha256-7OF1CrRnE4MYHuYD/pasnZpLe9lrbieGp4agnWAaKVo=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
jinja2
markdown
markupsafe
mkdocs
mkdocs-autorefs
pymdown-extensions
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';
pythonImportsCheck = [
"mkdocstrings"
];
disabledTestPaths = [
# Circular dependencies
"tests/test_extension.py"
];
meta = with lib; {
description = "Automatic documentation from sources for MkDocs";
homepage = "https://github.com/mkdocstrings/mkdocstrings";
license = licenses.isc;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5447,6 +5447,7 @@ in {
mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material/mkdocs-material-extensions.nix { };
mkdocs-minify = callPackage ../development/python-modules/mkdocs-minify { };
mkdocs-redirects = callPackage ../development/python-modules/mkdocs-redirects { };
mkdocstrings = callPackage ../development/python-modules/mkdocstrings { };
mkl-service = callPackage ../development/python-modules/mkl-service { };