2020-03-14 16:54:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
2020-06-07 13:39:09 +01:00
|
|
|
, ffmpeg_3
|
2020-03-14 16:54:45 +00:00
|
|
|
, tqdm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "ffmpeg-normalize";
|
2020-05-05 09:37:45 +01:00
|
|
|
version = "1.19.0";
|
2020-03-14 16:54:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-05 09:37:45 +01:00
|
|
|
sha256 = "18dpck9grnr3wgbjvdh4mjlx0zfwcxpy4rnpmc39in0yk3w7li2x";
|
2020-03-14 16:54:45 +00:00
|
|
|
};
|
|
|
|
|
2020-06-07 13:39:09 +01:00
|
|
|
propagatedBuildInputs = [ ffmpeg_3 tqdm ];
|
2020-03-14 16:54:45 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|