python310Packages.mkdocstrings: init at 0.19.0
This commit is contained in:
parent
d1e0dfd0f2
commit
d1261fa635
2 changed files with 67 additions and 0 deletions
66
pkgs/development/python-modules/mkdocstrings/default.nix
Normal file
66
pkgs/development/python-modules/mkdocstrings/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue