2020-03-14 16:54:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
2021-04-27 11:52:37 +01:00
|
|
|
, ffmpeg
|
|
|
|
, ffmpeg-progress-yield
|
2020-03-14 16:54:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "ffmpeg-normalize";
|
2021-04-27 11:52:37 +01:00
|
|
|
version = "1.22.1";
|
2020-03-14 16:54:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-27 11:52:37 +01:00
|
|
|
sha256 = "df826053212d540ab1bbe9819587fcbf36162f8c2535ae85b88b252e47d6d632";
|
2020-03-14 16:54:45 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 11:52:37 +01:00
|
|
|
propagatedBuildInputs = [ ffmpeg ffmpeg-progress-yield ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|