mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
40 lines
1.4 KiB
Nix
40 lines
1.4 KiB
Nix
{ stdenv, python3Packages, fetchFromGitHub }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "codebraid";
|
|
version = "0.5.0-unstable-2020-07-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gpoore";
|
|
repo = pname;
|
|
rev = "c7962587e7f1e619b5dcf9a5e901eb7042520b00";
|
|
sha256 = "1f31yaiwc33ivjbipym7sggsqwqxn70kgf9dixi8392pk70jzq6p";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [ bespon ];
|
|
# unfortunately upstream doesn't contain tests
|
|
checkPhase = ''
|
|
$out/bin/codebraid --help > /dev/null
|
|
'';
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/gpoore/codebraid";
|
|
description = ''
|
|
Live code in Pandoc Markdown.
|
|
|
|
Codebraid is a Python program that enables executable code in Pandoc
|
|
Markdown documents. Using Codebraid can be as simple as adding a class to
|
|
your code blocks' attributes, and then running codebraid rather than
|
|
pandoc to convert your document from Markdown to another format.
|
|
codebraid supports almost all of pandoc's options and passes them to
|
|
pandoc internally.
|
|
|
|
Codebraid provides two options for executing code. It includes a built-in
|
|
code execution system that currently supports Python 3.5+, Julia, Rust,
|
|
R, Bash, and JavaScript. Code can also be executed using Jupyter kernels,
|
|
with support for rich output like plots.
|
|
'';
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ synthetica ];
|
|
};
|
|
}
|