python310Packages.mkdocs-autorefs: init 0.4.1

This commit is contained in:
Fabian Affolter 2022-06-28 20:05:18 +02:00
parent a24431e56f
commit d1e0dfd0f2
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, markdown
, mkdocs
, pytestCheckHook
, pdm-pep517
, pythonOlder
}:
buildPythonApplication rec {
pname = "mkdocs-autorefs";
version = "0.4.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = "autorefs";
rev = version;
sha256 = "sha256-kiHb/XSFw6yaUbLJHBvHaQAOVUM6UfyFeomgniDZqgU=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
markdown
mkdocs
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';
pythonImportsCheck = [
"mkdocs_autorefs"
];
meta = with lib; {
description = "Automatically link across pages in MkDocs";
homepage = "https://github.com/mkdocstrings/autorefs/";
license = licenses.isc;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5438,6 +5438,7 @@ in {
mizani = callPackage ../development/python-modules/mizani { };
mkdocs = callPackage ../development/python-modules/mkdocs { };
mkdocs-autorefs = callPackage ../development/python-modules/mkdocs-autorefs { };
mkdocs-drawio-exporter = callPackage ../development/python-modules/mkdocs-drawio-exporter { };
mkdocs-exclude = callPackage ../development/python-modules/mkdocs-exclude { };
mkdocs-gitlab = callPackage ../development/python-modules/mkdocs-gitlab-plugin { };