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-10-18 14:16:47 +01:00
|
|
|
version = "1.22.4";
|
2020-03-14 16:54:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-18 14:16:47 +01:00
|
|
|
sha256 = "a20978538ae9a51bdbe5ef5aa0f87ede0f8efd2817ab240980de56eac36982e3";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|