Unverified Commit 914f5b06 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #258179 from EsAu79p/init-unsilence

unsilence: init at 1.0.9
parents 937204ae 6a8927c7
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}