Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "MarkdownPP"; 8 version = "1.5.1"; 9 propagatedBuildInputs = with python3.pkgs; [ pillow watchdog ]; 10 checkPhase = '' 11 cd test 12 PATH=$out/bin:$PATH ${python3}/bin/${python3.executable} test.py 13 ''; 14 src = fetchFromGitHub { 15 owner = "jreese"; 16 repo = "markdown-pp"; 17 rev = "v${version}"; 18 sha256 = "180i5wn9z6vdk2k2bh8345z3g80hj7zf5s2pq0h7k9vaxqpp7avc"; 19 }; 20 meta = with lib; { 21 description = "Preprocessor for Markdown files to generate a table of contents and other documentation needs"; 22 license = licenses.mit; 23 homepage = "https://github.com/jreese/markdown-pp"; 24 maintainers = with maintainers; [ zgrannan ]; 25 }; 26}