Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 776 B view raw
1{ lib, substituteAll, buildPythonPackage, fetchFromGitHub 2, pandoc, texlive 3}: 4 5buildPythonPackage rec { 6 pname = "pypandoc"; 7 version = "1.5"; 8 9 src = fetchFromGitHub { 10 owner = "bebraw"; 11 repo = pname; 12 rev = version; 13 sha256 = "1lpslfns6zxx7b0xr13bzg921lwrj5am8za0b2dviywk6iiib0ld"; 14 }; 15 16 patches = [ 17 (substituteAll { 18 src = ./static-pandoc-path.patch; 19 pandoc = "${lib.getBin pandoc}/bin/pandoc"; 20 }) 21 ./skip-tests.patch 22 ./new-pandoc-headings.patch 23 ]; 24 25 checkInputs = [ 26 texlive.combined.scheme-small 27 ]; 28 29 meta = with lib; { 30 description = "Thin wrapper for pandoc"; 31 homepage = "https://github.com/bebraw/pypandoc"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ sternenseemann bennofs ]; 34 }; 35}