diff options
author | Phillip Cloud <417981+cpcloud@users.noreply.github.com> | 2022-01-24 09:00:35 -0500 |
---|---|---|
committer | Phillip Cloud <417981+cpcloud@users.noreply.github.com> | 2022-01-24 09:00:35 -0500 |
commit | d6521c5ef7efbdb01f35b5e60b7f2a2625bc7b06 (patch) | |
tree | f4ecae06641a828d3fb9b6bdbd104f91d39e2357 /pkgs/development/python-modules/mkdocs | |
parent | 3f70c90d7a732a37fa5bde009bf013e2e83a9bf7 (diff) |
mkdocs: move to python3Packages.mkdocs
Diffstat (limited to 'pkgs/development/python-modules/mkdocs')
-rw-r--r-- | pkgs/development/python-modules/mkdocs/default.nix | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mkdocs/default.nix b/pkgs/development/python-modules/mkdocs/default.nix new file mode 100644 index 0000000000000..f7774cc7127eb --- /dev/null +++ b/pkgs/development/python-modules/mkdocs/default.nix @@ -0,0 +1,67 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +with python3.pkgs; + +buildPythonApplication rec { + pname = "mkdocs"; + version = "1.2.1"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = version; + sha256 = "sha256-JF3Zz1ObxeKsIF0pa8duJxqjLgMvmWsWMApHT43Z+EY="; + }; + + propagatedBuildInputs = [ + click + jinja2 + markdown + mergedeep + pyyaml + pyyaml-env-tag + ghp-import + importlib-metadata + watchdog + packaging + ]; + + checkInputs = [ + Babel + mock + pytestCheckHook + ]; + + postPatch = '' + # Remove test due to missing requirement + rm mkdocs/tests/theme_tests.py + ''; + + pytestFlagsArray = [ "mkdocs/tests/*.py" ]; + + disabledTests = [ + # Don't start a test server + "testing_server" + ]; + + pythonImportsCheck = [ "mkdocs" ]; + + meta = with lib; { + 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. + + MkDocs can also be used to generate general-purpose websites. + ''; + homepage = "http://mkdocs.org/"; + license = licenses.bsd2; + platforms = platforms.unix; + maintainers = with maintainers; [ rkoe ]; + }; +} |