about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-11-03 19:41:06 +0200
committerGitHub <noreply@github.com>2023-11-03 19:41:06 +0200
commit914f5b06687fc2527b0d427aa34a689c80641f00 (patch)
tree843f7e56bb6a35d1b5037519415baeadc7084fe6 /pkgs/by-name
parent937204ae055c37893900ad030b3ddd64c1ed52ad (diff)
parent6a8927c72a9ffdb31282100d8544d94c79fa5a0e (diff)
Merge pull request #258179 from EsAu79p/init-unsilence
unsilence: init at 1.0.9
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/un/unsilence/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/un/unsilence/package.nix b/pkgs/by-name/un/unsilence/package.nix
new file mode 100644
index 0000000000000..a8c9ef1d9c952
--- /dev/null
+++ b/pkgs/by-name/un/unsilence/package.nix
@@ -0,0 +1,43 @@
+{ lib
+, fetchFromGitHub
+, python3Packages
+, ffmpeg
+,
+}:
+python3Packages.buildPythonPackage rec {
+  pname = "unsilence";
+  version = "1.0.9";
+
+  src = fetchFromGitHub {
+    owner = "lagmoellertim";
+    repo = "unsilence";
+    rev = version;
+    sha256 = "sha256-M4Ek1JZwtr7vIg14aTa8h4otIZnPQfKNH4pZE4GpiBQ=";
+  };
+
+  nativeBuildInputs = with python3Packages; [
+    rich
+    pythonRelaxDepsHook
+  ];
+
+  propagatedBuildInputs = [
+    python3Packages.rich
+    python3Packages.setuptools # imports pkg_resources.parse_version
+  ];
+
+  makeWrapperArgs = [
+    "--suffix PATH : ${lib.makeBinPath [ ffmpeg ]}"
+  ];
+
+  doCheck = false;
+  pythonImportsCheck = [ "unsilence" ];
+
+  pythonRelaxDeps = [ "rich" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/lagmoellertim/unsilence";
+    description = "Console Interface and Library to remove silent parts of a media file";
+    license = licenses.mit;
+    maintainers = with maintainers; [ esau79p ];
+  };
+}