1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 22:32:26 +03:00
nixpkgs/pkgs/development/python-modules/mkdocs/default.nix

89 lines
1.7 KiB
Nix
Raw Normal View History

{
# eval time deps
lib
, buildPythonPackage
2021-06-18 13:25:10 +02:00
, fetchFromGitHub
, pythonOlder
2022-12-30 20:13:25 +01:00
# buildtime
, hatchling
# runtime deps
, click
, ghp-import
, importlib-metadata
, jinja2
, markdown
, mergedeep
, packaging
, pyyaml
, pyyaml-env-tag
, watchdog
2022-12-30 20:13:25 +01:00
# testing deps
, babel
, mock
, unittestCheckHook
2021-06-18 13:25:10 +02:00
}:
2017-09-26 15:35:17 +03:00
buildPythonPackage rec {
2017-09-26 15:35:17 +03:00
pname = "mkdocs";
2022-12-30 20:13:25 +01:00
version = "1.4.2";
format = "pyproject";
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;
2022-12-30 20:13:25 +01:00
rev = "refs/tags/${version}";
hash = "sha256-/NxiKbCd2acYcNe5ww3voM9SGVE2IDqknngqApkDbNs=";
2017-09-26 15:35:17 +03:00
};
2022-12-30 20:13:25 +01:00
postPatch = ''
substituteInPlace pyproject.toml \
--replace "Markdown >=3.2.1, <3.4" "Markdown"
'';
nativeBuildInputs = [
hatchling
];
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 = [
unittestCheckHook
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
unittestFlagsArray = [ "-v" "-p" "'*tests.py'" "mkdocs" ];
2017-09-26 15:35:17 +03:00
2021-06-18 13:25:10 +02:00
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.
2021-06-18 13:25:10 +02:00
MkDocs can also be used to generate general-purpose websites.
'';
homepage = "http://mkdocs.org/";
2021-06-18 13:25:10 +02:00
license = licenses.bsd2;
platforms = platforms.unix;
2021-06-18 13:25:10 +02:00
maintainers = with maintainers; [ rkoe ];
2017-09-26 15:35:17 +03:00
};
}