nixpkgs/pkgs/development/tools/documentation/mkdocs/default.nix
2018-04-08 11:36:06 +02:00

44 lines
849 B
Nix

{ lib, python, fetchFromGitHub }:
with python.pkgs;
buildPythonApplication rec {
pname = "mkdocs";
version = "0.17.3";
src = fetchFromGitHub {
owner = "mkdocs";
repo = "mkdocs";
rev = version;
sha256 = "15lv60gdc837zja5kn2rfp78kwyb1ckc43jg01zfzqra4qz7b6rw";
};
postPatch = ''
substituteInPlace setup.py \
--replace "tornado>=4.1,<5.0" "tornado>=4.1"
'';
checkInputs = [
nose nose-exclude mock
];
NOSE_EXCLUDE_TESTS="mkdocs.tests.gh_deploy_tests.TestGitHubDeploy;mkdocs.tests.config.config_tests.ConfigTests";
checkPhase = "nosetests mkdocs";
propagatedBuildInputs = [
tornado
livereload
click
pyyaml
markdown
jinja2
];
meta = {
homepage = http://mkdocs.org/;
description = "Project documentation with Markdown";
license = lib.licenses.bsd2;
};
}