nixpkgs/pkgs/development/tools/documentation/mkdocs/default.nix

40 lines
773 B
Nix
Raw Normal View History

2017-10-01 11:56:05 +02:00
{ lib, python, fetchFromGitHub }:
2017-09-26 14:35:17 +02:00
with python.pkgs;
buildPythonApplication rec {
pname = "mkdocs";
version = "0.17.3";
2017-09-26 14:35:17 +02:00
name = "${pname}-${version}";
2017-10-01 11:56:05 +02:00
src = fetchFromGitHub {
owner = "mkdocs";
repo = "mkdocs";
rev = version;
sha256 = "15lv60gdc837zja5kn2rfp78kwyb1ckc43jg01zfzqra4qz7b6rw";
2017-09-26 14:35:17 +02:00
};
2017-10-01 11:56:05 +02:00
checkInputs = [
nose nose-exclude mock
];
NOSE_EXCLUDE_TESTS="mkdocs.tests.gh_deploy_tests.TestGitHubDeploy;mkdocs.tests.config.config_tests.ConfigTests";
checkPhase = "nosetests mkdocs";
2017-09-26 14:35:17 +02:00
propagatedBuildInputs = [
tornado
livereload
click
pyyaml
markdown
jinja2
];
meta = {
homepage = http://mkdocs.org/;
description = "Project documentation with Markdown";
license = lib.licenses.bsd2;
};
}