about summary refs log tree commit diff
path: root/pkgs/by-name/as
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-11-05 18:15:26 +0100
committerPol Dellaiera <pol.dellaiera@protonmail.com>2024-03-31 22:54:32 +0200
commit932751fa9fb1282e9a0186f30b44b0038ce049b0 (patch)
treeb4dac4bf10d165b8a75ae1bd41589b2f8497d5b5 /pkgs/by-name/as
parent35a3c22cf05dbdfedad8b4f5ce263f1f2e0694e1 (diff)
asciinema-automation: init at 0.2.0
Diffstat (limited to 'pkgs/by-name/as')
-rw-r--r--pkgs/by-name/as/asciinema-automation/package.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/as/asciinema-automation/package.nix b/pkgs/by-name/as/asciinema-automation/package.nix
new file mode 100644
index 0000000000000..339ec370a96f6
--- /dev/null
+++ b/pkgs/by-name/as/asciinema-automation/package.nix
@@ -0,0 +1,48 @@
+{ lib
+, python3
+, fetchFromGitHub
+, asciinema
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "asciinema-automation";
+  version = "0.2.0";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "PierreMarchand20";
+    repo = "asciinema_automation";
+    rev = "v${version}";
+    hash = "sha256-SjUsPrhoNz2NTPAkmUH0Csv6hbDc6nyKdckGqV5S3GY=";
+  };
+
+  nativeBuildInputs = [
+    python3.pkgs.setuptools
+    python3.pkgs.wheel
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    asciinema
+    pexpect
+  ];
+
+  passthru.optional-dependencies = with python3.pkgs; {
+    dev = [
+      mypy
+      pytest
+      ruff
+      types-pexpect
+    ];
+  };
+
+  pythonImportsCheck = [ "asciinema_automation" ];
+
+  meta = {
+    changelog = "https://github.com/PierreMarchand20/asciinema_automation/blob/${src.rev}/CHANGELOG.md";
+    description = "CLI utility to automate asciinema recordings";
+    homepage = "https://github.com/PierreMarchand20/asciinema_automation";
+    license = lib.licenses.mit;
+    mainProgram = "asciinema-automation";
+    maintainers = with lib.maintainers; [ drupol ];
+  };
+}