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";
|
2018-07-08 07:44:43 +02:00
|
|
|
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;
|
2018-07-08 07:44:43 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|