2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mkdocs";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.1";
|
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-JF3Zz1ObxeKsIF0pa8duJxqjLgMvmWsWMApHT43Z+EY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
checkInputs = [
|
|
|
|
Babel
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove test due to missing requirement
|
|
|
|
rm mkdocs/tests/theme_tests.py
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestFlagsArray = [ "mkdocs/tests/*.py" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Don't start a test server
|
|
|
|
"testing_server"
|
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
|
|
|
};
|
|
|
|
}
|