Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 905 B view raw
1{ 2 buildPythonApplication, 3 fetchFromGitHub, 4 lib, 5 natsort, 6 panflute, 7 lxml, 8 setuptools, 9 nix-update-script, 10}: 11 12buildPythonApplication rec { 13 pname = "pandoc-include"; 14 version = "1.4.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "DCsunset"; 19 repo = "pandoc-include"; 20 tag = "v${version}"; 21 hash = "sha256-8ldIywvCExnbMNs9m7iLwM1HrTRHl7j4t3JQuBt0Z7U="; 22 }; 23 24 build-system = [ 25 setuptools 26 ]; 27 28 passthru.updateScript = nix-update-script { }; 29 30 propagatedBuildInputs = [ 31 natsort 32 panflute 33 lxml 34 ]; 35 36 pythonImportsCheck = [ "pandoc_include.main" ]; 37 38 meta = with lib; { 39 description = "Pandoc filter to allow file and header includes"; 40 homepage = "https://github.com/DCsunset/pandoc-include"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ 43 ppenguin 44 DCsunset 45 ]; 46 mainProgram = "pandoc-include"; 47 }; 48}