mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
pythonPackages.mkdocs-awesome-nav: 2.10.1 -> 3.0.0
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
gitMinimal,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
flit-core,
|
||||
mkdocs,
|
||||
mkdocs-exclude,
|
||||
mkdocs-material,
|
||||
natsort,
|
||||
pydantic,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
wcmatch,
|
||||
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "mkdocs-awesome-nav";
|
||||
version = "3.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lukasgeiter";
|
||||
repo = "mkdocs-awesome-nav";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-EgHiphpMAL+1ZC+I8PxRHMk1gcyAgHcUm4eoVu67+Qc=";
|
||||
};
|
||||
|
||||
build-system = [ flit-core ];
|
||||
|
||||
dependencies = [
|
||||
mkdocs
|
||||
natsort
|
||||
pydantic
|
||||
wcmatch
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
gitMinimal
|
||||
mkdocs-exclude
|
||||
mkdocs-material
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# depends on yet-unpackaged mktheapidocs plugin
|
||||
"tests/compatibility/test_mktheapidocs.py"
|
||||
# depends on yet-unpackaged mkdocs-monorepo-plugin
|
||||
"tests/compatibility/test_monorepo.py"
|
||||
# depends on yet-unpackaged mkdocs-multirepo-plugin
|
||||
"tests/compatibility/test_multirepo.py"
|
||||
# depends on yet-unpackaged mkdocs-static-i18n plugin
|
||||
"tests/compatibility/test_static_i18n_folder.py"
|
||||
"tests/compatibility/test_static_i18n_suffix.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Plugin for customizing the navigation structure of your MkDocs site";
|
||||
homepage = "https://github.com/lukasgeiter/mkdocs-awesome-nav";
|
||||
changelog = "https://github.com/lukasgeiter/mkdocs-awesome-nav/blob/v${version}/CHANGELOG";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ phaer ];
|
||||
};
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
mkdocs,
|
||||
wcmatch,
|
||||
natsort,
|
||||
pytestCheckHook,
|
||||
beautifulsoup4,
|
||||
mock-open,
|
||||
importlib-metadata,
|
||||
pythonOlder,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "mkdocs-awesome-pages-plugin";
|
||||
version = "2.10.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lukasgeiter";
|
||||
repo = "mkdocs-awesome-pages-plugin";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-p/oG2SvGZrRbIS2yhW3M1+t+OO0przeNsFUtqObNDUA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
mkdocs
|
||||
wcmatch
|
||||
natsort
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
beautifulsoup4
|
||||
mock-open
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An MkDocs plugin that simplifies configuring page titles and their order";
|
||||
homepage = "https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin";
|
||||
changelog = "https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/blob/v${version}/CHANGELOG";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ phaer ];
|
||||
};
|
||||
}
|
||||
@@ -386,6 +386,7 @@ mapAliases ({
|
||||
mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12
|
||||
mistune_2_0 = mistune; # added 2022-08-12
|
||||
mitmproxy-wireguard = throw "mitmproxy-wireguard has been removed because it was replaced by upstream with mitmproxy-rs"; # added 2023-11-06
|
||||
mkdocs-awesome-pages-plugin = mkdocs-awesome-nav; # added 2025-03-10
|
||||
mkdocs-minify = mkdocs-minify-plugin; # added 2023-11-28
|
||||
mox = throw "mox was removed because it is unmaintained"; # added 2023-02-21
|
||||
mox3 = throw "mox3 was removed because it is unmaintained"; # added 2024-08-30
|
||||
|
||||
@@ -8470,7 +8470,7 @@ self: super: with self; {
|
||||
mkdocs-autolinks-plugin = callPackage ../development/python-modules/mkdocs-autolinks-plugin { };
|
||||
|
||||
mkdocs-autorefs = callPackage ../development/python-modules/mkdocs-autorefs { };
|
||||
mkdocs-awesome-pages-plugin = callPackage ../development/python-modules/mkdocs-awesome-pages-plugin { };
|
||||
mkdocs-awesome-nav = callPackage ../development/python-modules/mkdocs-awesome-nav { };
|
||||
|
||||
mkdocs-drawio-exporter = callPackage ../development/python-modules/mkdocs-drawio-exporter { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user