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

44 lines
849 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.5";
2017-09-26 14:35:17 +02:00
2017-10-01 11:56:05 +02:00
src = fetchFromGitHub {
owner = "mkdocs";
repo = "mkdocs";
rev = version;
sha256 = "1l1dahpwqikmww3yx2m6j2134npk8vcikg9klsmpqjpza8nigwzw";
2017-09-26 14:35:17 +02:00
};
2018-04-06 16:30:14 +02:00
postPatch = ''
substituteInPlace setup.py \
--replace "tornado>=4.1,<5.0" "tornado>=4.1"
'';
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;
};
}