nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 52 lines 1.3 kB view raw
1{ stdenv, lib, python3, fetchFromGitHub }: 2 3with python3.pkgs; 4 5buildPythonApplication rec { 6 pname = "mkdocs"; 7 version = "1.0.4"; 8 9 src = fetchFromGitHub { 10 owner = "mkdocs"; 11 repo = "mkdocs"; 12 rev = version; 13 sha256 = "1x35vgiskgz4wwrvi4m1mri5wlphf15p90fr3rxsy5bf19v3s9hs"; 14 }; 15 16 checkInputs = [ 17 nose nose-exclude mock 18 ]; 19 20 NOSE_EXCLUDE_TESTS = lib.concatStringsSep ";" [ 21 "mkdocs.tests.gh_deploy_tests.TestGitHubDeploy" 22 "mkdocs.tests.config.config_tests.ConfigTests" 23 "mkdocs.tests.config.config_options_tests.DirTest" 24 ]; 25 26 checkPhase = "nosetests mkdocs"; 27 28 propagatedBuildInputs = [ 29 tornado 30 livereload 31 click 32 pyyaml 33 markdown 34 jinja2 35 backports_tempfile 36 ]; 37 38 meta = with stdenv.lib; { 39 description = "Project documentation with Markdown / static website generator"; 40 longDescription = '' 41 MkDocs is a fast, simple and downright gorgeous static site generator that's 42 geared towards building project documentation. Documentation source files 43 are written in Markdown, and configured with a single YAML configuration file. 44 45 MkDocs can also be used to generate general-purpose Websites. 46 ''; 47 homepage = "http://mkdocs.org/"; 48 license = lib.licenses.bsd2; 49 platforms = platforms.unix; 50 maintainers = [ maintainers.rkoe ]; 51 }; 52}