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-09-16 01:43:36 +01:00
|
|
|
version = "1.22.3";
|
2020-03-14 16:54:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-16 01:43:36 +01:00
|
|
|
sha256 = "317a9636587182280debc85d483f6d21987ceb6cd96ab36a2399836780eca822";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|