2022-01-24 09:03:30 -05:00
|
|
|
{
|
|
|
|
# eval time deps
|
|
|
|
lib
|
|
|
|
, buildPythonPackage
|
2021-06-18 13:25:10 +02:00
|
|
|
, fetchFromGitHub
|
2022-01-24 09:03:30 -05:00
|
|
|
, pythonOlder
|
|
|
|
# runtime deps
|
|
|
|
, click
|
|
|
|
, ghp-import
|
|
|
|
, importlib-metadata
|
|
|
|
, jinja2
|
|
|
|
, markdown
|
|
|
|
, mergedeep
|
|
|
|
, packaging
|
|
|
|
, pyyaml
|
|
|
|
, pyyaml-env-tag
|
|
|
|
, watchdog
|
2022-01-24 09:48:11 -05:00
|
|
|
# testing deps
|
2022-05-09 01:53:28 +02:00
|
|
|
, babel
|
2022-01-24 09:03:30 -05:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2021-06-18 13:25:10 +02:00
|
|
|
}:
|
2017-09-26 15:35:17 +03:00
|
|
|
|
2022-01-24 09:03:30 -05:00
|
|
|
buildPythonPackage rec {
|
2017-09-26 15:35:17 +03:00
|
|
|
pname = "mkdocs";
|
2022-04-12 23:38:03 +02:00
|
|
|
version = "1.3.0";
|
2021-06-18 13:25:10 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-26 15:35:17 +03:00
|
|
|
|
2017-10-01 10:56:05 +01:00
|
|
|
src = fetchFromGitHub {
|
2021-06-18 13:25:10 +02:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2017-10-01 10:56:05 +01:00
|
|
|
rev = version;
|
2022-04-12 23:38:03 +02:00
|
|
|
sha256 = "sha256-S4xkr3jS5GvkMu8JnEGfqhmkxy3FtZZb7Rbuniltudg=";
|
2017-09-26 15:35:17 +03:00
|
|
|
};
|
|
|
|
|
2021-06-18 13:25:10 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
mergedeep
|
|
|
|
pyyaml
|
|
|
|
pyyaml-env-tag
|
|
|
|
ghp-import
|
|
|
|
importlib-metadata
|
|
|
|
watchdog
|
|
|
|
packaging
|
2017-10-01 10:56:05 +01:00
|
|
|
];
|
|
|
|
|
2021-06-18 13:25:10 +02:00
|
|
|
checkInputs = [
|
2022-05-09 01:53:28 +02:00
|
|
|
babel
|
2021-06-18 13:25:10 +02:00
|
|
|
mock
|
2018-12-15 00:48:32 +01:00
|
|
|
];
|
2017-10-01 10:56:05 +01:00
|
|
|
|
2021-06-18 13:25:10 +02:00
|
|
|
|
2022-01-24 09:48:26 -05:00
|
|
|
checkPhase = ''
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
python -m unittest discover -v -p '*tests.py' mkdocs --top-level-directory .
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2017-09-26 15:35:17 +03:00
|
|
|
|
2021-06-18 13:25:10 +02:00
|
|
|
pythonImportsCheck = [ "mkdocs" ];
|
|
|
|
|
2021-01-23 19:26:19 +07:00
|
|
|
meta = with lib; {
|
2019-11-23 23:23:47 +01: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-01-20 07:20:11 +10:00
|
|
|
|
2021-06-18 13:25:10 +02:00
|
|
|
MkDocs can also be used to generate general-purpose websites.
|
2019-11-23 23:23:47 +01:00
|
|
|
'';
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "http://mkdocs.org/";
|
2021-06-18 13:25:10 +02:00
|
|
|
license = licenses.bsd2;
|
2019-11-23 23:23:47 +01:00
|
|
|
platforms = platforms.unix;
|
2021-06-18 13:25:10 +02:00
|
|
|
maintainers = with maintainers; [ rkoe ];
|
2017-09-26 15:35:17 +03:00
|
|
|
};
|
|
|
|
}
|