python310Packages.mkdocs-autorefs: init 0.4.1
This commit is contained in:
parent
a24431e56f
commit
d1e0dfd0f2
2 changed files with 54 additions and 0 deletions
53
pkgs/development/python-modules/mkdocs-autorefs/default.nix
Normal file
53
pkgs/development/python-modules/mkdocs-autorefs/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5438,6 +5438,7 @@ in {
|
||||||
mizani = callPackage ../development/python-modules/mizani { };
|
mizani = callPackage ../development/python-modules/mizani { };
|
||||||
|
|
||||||
mkdocs = callPackage ../development/python-modules/mkdocs { };
|
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-drawio-exporter = callPackage ../development/python-modules/mkdocs-drawio-exporter { };
|
||||||
mkdocs-exclude = callPackage ../development/python-modules/mkdocs-exclude { };
|
mkdocs-exclude = callPackage ../development/python-modules/mkdocs-exclude { };
|
||||||
mkdocs-gitlab = callPackage ../development/python-modules/mkdocs-gitlab-plugin { };
|
mkdocs-gitlab = callPackage ../development/python-modules/mkdocs-gitlab-plugin { };
|
||||||
|
|
Loading…
Reference in a new issue