r128gain: 0.9.3 -> 1.0.1
Switched the source to GitHub so that test files are available for local, unsandboxed testing.
This commit is contained in:
committed by
Jon
parent
07c817f9d2
commit
6f24be13ee
@@ -1,19 +1,37 @@
|
||||
{ lib, python3Packages, ffmpeg }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, substituteAll
|
||||
, ffmpeg
|
||||
, python3Packages
|
||||
, sox
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "r128gain";
|
||||
version = "0.9.3";
|
||||
version = "1.0.1";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dx2grryp0lj58bawx1zcq9a6b4ijz9r5qrg8h6nvm92kqlya26i";
|
||||
src = fetchFromGitHub {
|
||||
owner = "desbma";
|
||||
repo = "r128gain";
|
||||
rev = version;
|
||||
sha256 = "0fnxis2g7mw8mb0cz9bws909lrndli7ml54nnzda49vc2fhbjwxr";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ffmpeg ]
|
||||
++ (with python3Packages; [ crcmod mutagen tqdm ])
|
||||
;
|
||||
patches = [
|
||||
(
|
||||
substituteAll {
|
||||
src = ./ffmpeg-location.patch;
|
||||
inherit ffmpeg;
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
doCheck = false; # downloads media files for testing
|
||||
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;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast audio loudness scanner & tagger (ReplayGain v2 / R128)";
|
||||
|
||||
Reference in New Issue
Block a user