2020-03-14 17:54:45 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
2021-04-27 12:52:37 +02:00
|
|
|
, ffmpeg
|
|
|
|
, ffmpeg-progress-yield
|
2020-03-14 17:54:45 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "ffmpeg-normalize";
|
2021-10-18 15:16:47 +02:00
|
|
|
version = "1.22.4";
|
2020-03-14 17:54:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-18 15:16:47 +02:00
|
|
|
sha256 = "a20978538ae9a51bdbe5ef5aa0f87ede0f8efd2817ab240980de56eac36982e3";
|
2020-03-14 17:54:45 +01:00
|
|
|
};
|
|
|
|
|
2021-04-27 12:52:37 +02:00
|
|
|
propagatedBuildInputs = [ ffmpeg ffmpeg-progress-yield ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|