about summary refs log tree commit diff
path: root/pkgs/tools/text/tesh
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2023-07-31 12:20:48 +0100
committerDomen Kožar <domen@dev.si>2023-07-31 12:20:48 +0100
commit86a31e1efa4418d18c0a7c1c7936b5b7511b493d (patch)
tree2d8f42b58f6fb0d0cc069b248f2ca846347de754 /pkgs/tools/text/tesh
parent0b5456b363efbe38e14b7481f990f8de535165a5 (diff)
init tesh at 0.3.0: TEstable SHell sessions in Markdown
Diffstat (limited to 'pkgs/tools/text/tesh')
-rw-r--r--pkgs/tools/text/tesh/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/text/tesh/default.nix b/pkgs/tools/text/tesh/default.nix
new file mode 100644
index 0000000000000..7961b120d2135
--- /dev/null
+++ b/pkgs/tools/text/tesh/default.nix
@@ -0,0 +1,26 @@
+{ python3Packages, fetchFromGitHub }:
+
+let
+  version = "0.3.0";
+in python3Packages.buildPythonPackage rec {
+  pname = "tesh";
+  inherit version;
+
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "OceanSprint";
+    repo = "tesh";
+    rev = version;
+    sha256 = "sha256-/CSYz2YXbjKZszb1HMOCS+srVJ+TcFSeLeuz9VvtlI4=";
+  };
+
+  prePatch = ''
+      substituteInPlace pyproject.toml \
+      --replace "poetry.masonry" "poetry.core.masonry"
+  '';
+
+  checkInputs = [ python3Packages.pytest ];
+  nativeBuildInputs = [ python3Packages.poetry-core ];
+  propagatedBuildInputs = with python3Packages; [ click pexpect ];
+}