2022-01-26 04:04:25 +00:00
|
|
|
{
|
|
|
|
# eval time deps
|
|
|
|
lib
|
|
|
|
, buildPythonPackage
|
2021-06-28 23:13:55 +00:00
|
|
|
, fetchFromGitHub
|
2022-01-26 04:04:25 +00:00
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
# buildtime
|
|
|
|
, hatchling
|
|
|
|
|
|
|
|
# runtime deps
|
2022-01-26 04:04:25 +00:00
|
|
|
, click
|
|
|
|
, ghp-import
|
|
|
|
, importlib-metadata
|
|
|
|
, jinja2
|
|
|
|
, markdown
|
|
|
|
, mergedeep
|
|
|
|
, packaging
|
|
|
|
, pyyaml
|
|
|
|
, pyyaml-env-tag
|
|
|
|
, watchdog
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
# testing deps
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2022-01-26 04:04:25 +00:00
|
|
|
, mock
|
2022-09-09 14:08:57 +00:00
|
|
|
, 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";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.4.2";
|
|
|
|
format = "pyproject";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
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}";
|
|
|
|
hash = "sha256-/NxiKbCd2acYcNe5ww3voM9SGVE2IDqknngqApkDbNs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "Markdown >=3.2.1, <3.4" "Markdown"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
mergedeep
|
|
|
|
pyyaml
|
|
|
|
pyyaml-env-tag
|
|
|
|
ghp-import
|
|
|
|
importlib-metadata
|
|
|
|
watchdog
|
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
unittestCheckHook
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-06-28 23:13:55 +00:00
|
|
|
mock
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Project documentation with Markdown / static website generator";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|