nixpkgs/pkgs/applications/video/ffmpeg-normalize/default.nix

30 lines
612 B
Nix
Raw Normal View History

2020-03-14 17:54:45 +01:00
{ lib
, buildPythonApplication
, fetchPypi
, ffmpeg_3
2020-03-14 17:54:45 +01:00
, tqdm
}:
buildPythonApplication rec {
pname = "ffmpeg-normalize";
2020-05-05 10:37:45 +02:00
version = "1.19.0";
2020-03-14 17:54:45 +01:00
src = fetchPypi {
inherit pname version;
2020-05-05 10:37:45 +02:00
sha256 = "18dpck9grnr3wgbjvdh4mjlx0zfwcxpy4rnpmc39in0yk3w7li2x";
2020-03-14 17:54:45 +01:00
};
propagatedBuildInputs = [ ffmpeg_3 tqdm ];
2020-03-14 17:54:45 +01:00
checkPhase = ''
$out/bin/ffmpeg-normalize --help > /dev/null
'';
meta = with lib; {
description = "Normalize audio via ffmpeg";
homepage = "https://github.com/slhck/ffmpeg-normalize";
license = with licenses; [ mit ];
maintainers = with maintainers; [ prusnak ];
};
}