3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/documentation/mkdocs/default.nix

44 lines
861 B
Nix
Raw Normal View History

2017-10-01 10:56:05 +01:00
{ lib, python, fetchFromGitHub }:
2017-09-26 13:35:17 +01:00
with python.pkgs;
buildPythonApplication rec {
pname = "mkdocs";
2018-12-14 23:48:32 +00:00
version = "1.0.4";
2017-09-26 13:35:17 +01:00
2017-10-01 10:56:05 +01:00
src = fetchFromGitHub {
owner = "mkdocs";
repo = "mkdocs";
rev = version;
2018-12-14 23:48:32 +00:00
sha256 = "1x35vgiskgz4wwrvi4m1mri5wlphf15p90fr3rxsy5bf19v3s9hs";
2017-09-26 13:35:17 +01:00
};
2017-10-01 10:56:05 +01:00
checkInputs = [
nose nose-exclude mock
];
2018-12-14 23:48:32 +00:00
NOSE_EXCLUDE_TESTS = lib.concatStringsSep ";" [
"mkdocs.tests.gh_deploy_tests.TestGitHubDeploy"
"mkdocs.tests.config.config_tests.ConfigTests"
"mkdocs.tests.config.config_options_tests.DirTest"
];
2017-10-01 10:56:05 +01:00
checkPhase = "nosetests mkdocs";
2017-09-26 13:35:17 +01:00
propagatedBuildInputs = [
tornado
livereload
click
pyyaml
markdown
jinja2
2018-12-14 23:48:32 +00:00
backports_tempfile
2017-09-26 13:35:17 +01:00
];
meta = {
homepage = http://mkdocs.org/;
description = "Project documentation with Markdown";
license = lib.licenses.bsd2;
};
}