nixpkgs/pkgs/applications/audio/r128gain/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, gitUpdater
, substituteAll
, ffmpeg
, python3Packages
, sox
}:
2019-08-18 22:31:15 +03:00
python3Packages.buildPythonApplication rec {
pname = "r128gain";
2020-09-30 22:30:26 +03:00
version = "1.0.3";
2019-08-18 22:31:15 +03:00
src = fetchFromGitHub {
owner = "desbma";
repo = "r128gain";
rev = version;
2020-09-30 22:30:26 +03:00
sha256 = "0w2i2szajv1vcmc96w0fczdr8xc28ijcf1gdg180f21gi6yh96sc";
2019-08-18 22:31:15 +03:00
};
patches = [
(substituteAll {
src = ./ffmpeg-location.patch;
inherit ffmpeg;
})
];
2019-08-18 22:31:15 +03:00
propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ];
nativeCheckInputs = with python3Packages; [ requests sox ];
# Testing downloads media files for testing, which requires the
# sandbox to be disabled.
doCheck = false;
2019-08-18 22:31:15 +03:00
passthru.updateScript = gitUpdater { };
2020-09-30 22:30:08 +03:00
2019-08-18 22:31:15 +03:00
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;
};
}