mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
mkdocs: 1.0.4 -> 1.2.1
This commit is contained in:
parent
e02779eeed
commit
017b0596a1
1 changed files with 40 additions and 25 deletions
|
@ -1,40 +1,55 @@
|
||||||
{ lib, python3, fetchFromGitHub }:
|
{ lib
|
||||||
|
, python3
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
with python3.pkgs;
|
with python3.pkgs;
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "mkdocs";
|
pname = "mkdocs";
|
||||||
version = "1.0.4";
|
version = "1.2.1";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mkdocs";
|
owner = pname;
|
||||||
repo = "mkdocs";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1x35vgiskgz4wwrvi4m1mri5wlphf15p90fr3rxsy5bf19v3s9hs";
|
sha256 = "sha256-JF3Zz1ObxeKsIF0pa8duJxqjLgMvmWsWMApHT43Z+EY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
nose nose-exclude mock
|
|
||||||
];
|
|
||||||
|
|
||||||
NOSE_EXCLUDE_TESTS = lib.concatStringsSep ";" [
|
|
||||||
"mkdocs.tests.gh_deploy_tests.TestGitHubDeploy"
|
|
||||||
"mkdocs.tests.config.config_tests.ConfigTests"
|
|
||||||
"mkdocs.tests.config.config_options_tests.DirTest"
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = "nosetests mkdocs";
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
tornado
|
|
||||||
livereload
|
|
||||||
click
|
click
|
||||||
pyyaml
|
|
||||||
markdown
|
|
||||||
jinja2
|
jinja2
|
||||||
backports_tempfile
|
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; {
|
meta = with lib; {
|
||||||
description = "Project documentation with Markdown / static website generator";
|
description = "Project documentation with Markdown / static website generator";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -42,11 +57,11 @@ buildPythonApplication rec {
|
||||||
geared towards building project documentation. Documentation source files
|
geared towards building project documentation. Documentation source files
|
||||||
are written in Markdown, and configured with a single YAML configuration file.
|
are written in Markdown, and configured with a single YAML configuration file.
|
||||||
|
|
||||||
MkDocs can also be used to generate general-purpose Websites.
|
MkDocs can also be used to generate general-purpose websites.
|
||||||
'';
|
'';
|
||||||
homepage = "http://mkdocs.org/";
|
homepage = "http://mkdocs.org/";
|
||||||
license = lib.licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.rkoe ];
|
maintainers = with maintainers; [ rkoe ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue