9fb100dc28
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/mkdocs/versions. These checks were done: - built on NixOS - /nix/store/jvkm61ryls5w90v32pisdy2w9hv4sjjb-mkdocs-0.17.4/bin/.mkdocs-wrapped passed the binary check. - /nix/store/jvkm61ryls5w90v32pisdy2w9hv4sjjb-mkdocs-0.17.4/bin/mkdocs passed the binary check. - 2 of 2 passed binary check by having a zero exit code. - 2 of 2 passed binary check by having the new version present in output. - found 0.17.4 with grep in /nix/store/jvkm61ryls5w90v32pisdy2w9hv4sjjb-mkdocs-0.17.4 - directory tree listing: https://gist.github.com/51f000d43eea93f02bf57debed7ac8bc - du listing: https://gist.github.com/6f535d35f7a3c2d0e393e4e0fd0682c8
44 lines
849 B
Nix
44 lines
849 B
Nix
{ lib, python, fetchFromGitHub }:
|
|
|
|
with python.pkgs;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "mkdocs";
|
|
version = "0.17.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkdocs";
|
|
repo = "mkdocs";
|
|
rev = version;
|
|
sha256 = "1hwvy6lnqqmzjia5vqd45jx6gwd9cvf7p5vw245c0cg27zkgpazp";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|