about summary refs log tree commit diff
path: root/pkgs/tools/misc/codebraid
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2019-11-27 11:32:13 +0100
committerJon <jonringer@users.noreply.github.com>2020-02-23 11:56:10 -0800
commit7062fa3d576e5223653ae3c115368c5777343fe9 (patch)
tree8ce883d315102dfaf5420467cef1ad9a309623fd /pkgs/tools/misc/codebraid
parent35e5fc34ffda72cd14156eac14c8a16d5883790d (diff)
codebraid: init at 0.5.0-unstable-2019-12-11
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs/tools/misc/codebraid')
-rw-r--r--pkgs/tools/misc/codebraid/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/misc/codebraid/default.nix b/pkgs/tools/misc/codebraid/default.nix
new file mode 100644
index 0000000000000..bc4a7084cddac
--- /dev/null
+++ b/pkgs/tools/misc/codebraid/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, python3Packages, fetchFromGitHub }:
+
+python3Packages.buildPythonApplication rec {
+  pname = "codebraid";
+  version = "0.5.0-unstable-2019-12-11";
+
+  src = fetchFromGitHub {
+    owner = "gpoore";
+    repo = pname;
+    rev = "fac1b29";
+    sha256 = "0ldfrkkip7i1fdyz1iydyik3mhm0xv0jvxnl37r7g707dl38vf3h";
+  };
+
+  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 ];
+  };
+}