Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 67 lines 1.4 kB view raw
1{ lib 2, python3 3, fetchFromGitHub 4}: 5 6with python3.pkgs; 7 8buildPythonApplication rec { 9 pname = "mkdocs"; 10 version = "1.2.1"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = pname; 15 repo = pname; 16 rev = version; 17 sha256 = "sha256-JF3Zz1ObxeKsIF0pa8duJxqjLgMvmWsWMApHT43Z+EY="; 18 }; 19 20 propagatedBuildInputs = [ 21 click 22 jinja2 23 markdown 24 mergedeep 25 pyyaml 26 pyyaml-env-tag 27 ghp-import 28 importlib-metadata 29 watchdog 30 packaging 31 ]; 32 33 checkInputs = [ 34 Babel 35 mock 36 pytestCheckHook 37 ]; 38 39 postPatch = '' 40 # Remove test due to missing requirement 41 rm mkdocs/tests/theme_tests.py 42 ''; 43 44 pytestFlagsArray = [ "mkdocs/tests/*.py" ]; 45 46 disabledTests = [ 47 # Don't start a test server 48 "testing_server" 49 ]; 50 51 pythonImportsCheck = [ "mkdocs" ]; 52 53 meta = with lib; { 54 description = "Project documentation with Markdown / static website generator"; 55 longDescription = '' 56 MkDocs is a fast, simple and downright gorgeous static site generator that's 57 geared towards building project documentation. Documentation source files 58 are written in Markdown, and configured with a single YAML configuration file. 59 60 MkDocs can also be used to generate general-purpose websites. 61 ''; 62 homepage = "http://mkdocs.org/"; 63 license = licenses.bsd2; 64 platforms = platforms.unix; 65 maintainers = with maintainers; [ rkoe ]; 66 }; 67}