2022-01-26 04:04:25 +00:00
|
|
|
{
|
|
|
|
# eval time deps
|
2024-06-05 15:53:02 +00:00
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# buildtime
|
|
|
|
hatchling,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# runtime deps
|
|
|
|
click,
|
|
|
|
ghp-import,
|
|
|
|
importlib-metadata,
|
|
|
|
jinja2,
|
|
|
|
markdown,
|
|
|
|
markupsafe,
|
|
|
|
mergedeep,
|
2024-07-27 06:49:29 +00:00
|
|
|
mkdocs-get-deps,
|
2024-06-05 15:53:02 +00:00
|
|
|
packaging,
|
|
|
|
pathspec,
|
|
|
|
platformdirs,
|
|
|
|
pyyaml,
|
|
|
|
pyyaml-env-tag,
|
|
|
|
watchdog,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# optional-dependencies
|
|
|
|
babel,
|
|
|
|
setuptools,
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# testing deps
|
|
|
|
mock,
|
|
|
|
unittestCheckHook,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mkdocs";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.6.1";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-28 23:13:55 +00:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-JQSOgV12iYE6FubxdoJpWy9EHKFxyKoxrm/7arCn9Ak=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ hatchling ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
click
|
2023-11-16 04:20:00 +00:00
|
|
|
ghp-import
|
2021-06-28 23:13:55 +00:00
|
|
|
jinja2
|
|
|
|
markdown
|
2023-11-16 04:20:00 +00:00
|
|
|
markupsafe
|
2021-06-28 23:13:55 +00:00
|
|
|
mergedeep
|
2024-07-27 06:49:29 +00:00
|
|
|
mkdocs-get-deps
|
2023-11-16 04:20:00 +00:00
|
|
|
packaging
|
|
|
|
pathspec
|
|
|
|
platformdirs
|
2021-06-28 23:13:55 +00:00
|
|
|
pyyaml
|
|
|
|
pyyaml-env-tag
|
|
|
|
watchdog
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
i18n = [ babel ] ++ lib.optionals (pythonAtLeast "3.12") [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
unittestCheckHook
|
2021-06-28 23:13:55 +00:00
|
|
|
mock
|
2024-10-04 16:56:33 +00:00
|
|
|
] ++ optional-dependencies.i18n;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
unittestFlagsArray = [
|
|
|
|
"-v"
|
|
|
|
"-p"
|
|
|
|
"'*tests.py'"
|
|
|
|
"mkdocs"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pythonImportsCheck = [ "mkdocs" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/mkdocs/mkdocs/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Project documentation with Markdown / static website generator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mkdocs";
|
2024-01-13 08:15:51 +00:00
|
|
|
downloadPage = "https://github.com/mkdocs/mkdocs";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
MkDocs is a fast, simple and downright gorgeous static site generator that's
|
|
|
|
geared towards building project documentation. Documentation source files
|
|
|
|
are written in Markdown, and configured with a single YAML configuration file.
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
MkDocs can also be used to generate general-purpose websites.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
homepage = "http://mkdocs.org/";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ rkoe ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|