at 23.11-beta 1.5 kB view raw
1{ lib, python3Packages, fetchFromGitHub }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "codebraid"; 5 version = "0.11.0"; 6 format = "pyproject"; 7 8 src = fetchFromGitHub { 9 owner = "gpoore"; 10 repo = pname; 11 rev = "v${version}"; 12 hash = "sha256-E9vzGK9ZEVwF+UBpSkdM+hm6vINen/A+LgnnPpc77QQ="; 13 }; 14 15 nativeBuildInputs = with python3Packages; [ setuptools ]; 16 propagatedBuildInputs = with python3Packages; [ bespon ]; 17 # unfortunately upstream doesn't contain tests 18 checkPhase = '' 19 $out/bin/codebraid --help > /dev/null 20 ''; 21 meta = with lib; { 22 homepage = "https://github.com/gpoore/codebraid"; 23 description = '' 24 Live code in Pandoc Markdown. 25 26 Codebraid is a Python program that enables executable code in Pandoc 27 Markdown documents. Using Codebraid can be as simple as adding a class to 28 your code blocks' attributes, and then running codebraid rather than 29 pandoc to convert your document from Markdown to another format. 30 codebraid supports almost all of pandoc's options and passes them to 31 pandoc internally. 32 33 Codebraid provides two options for executing code. It includes a built-in 34 code execution system that currently supports Python 3.5+, Julia, Rust, 35 R, Bash, and JavaScript. Code can also be executed using Jupyter kernels, 36 with support for rich output like plots. 37 ''; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ synthetica ]; 40 }; 41}