nixpkgs/pkgs/applications/audio/r128gain/default.nix
Aluísio Augusto Silva Gonçalves 5fb64f9ab2
r128gain: 1.0.1 -> 1.0.3
2020-09-30 17:58:56 -03:00

53 lines
1.2 KiB
Nix

{ lib
, fetchFromGitHub
, genericUpdater
, substituteAll
, common-updater-scripts
, ffmpeg_3
, python3Packages
, sox
}:
python3Packages.buildPythonApplication rec {
pname = "r128gain";
version = "1.0.3";
src = fetchFromGitHub {
owner = "desbma";
repo = "r128gain";
rev = version;
sha256 = "0w2i2szajv1vcmc96w0fczdr8xc28ijcf1gdg180f21gi6yh96sc";
};
patches = [
(
substituteAll {
src = ./ffmpeg-location.patch;
ffmpeg = ffmpeg_3;
}
)
];
propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ];
checkInputs = with python3Packages; [ requests sox ];
# Testing downloads media files for testing, which requires the
# sandbox to be disabled.
doCheck = false;
passthru = {
updateScript = genericUpdater {
inherit pname version;
versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}";
};
};
meta = with lib; {
description = "Fast audio loudness scanner & tagger (ReplayGain v2 / R128)";
homepage = "https://github.com/desbma/r128gain";
license = licenses.lgpl2Plus;
maintainers = [ maintainers.AluisioASG ];
platforms = platforms.all;
};
}