2018-09-13 15:42:28 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python2, cdparanoia, cdrdao, flac
|
|
|
|
, sox, accuraterip-checksum, utillinux, substituteAll }:
|
|
|
|
|
|
|
|
python2.pkgs.buildPythonApplication rec {
|
|
|
|
name = "whipper-${version}";
|
2018-12-22 10:10:47 +00:00
|
|
|
version = "0.7.3";
|
2018-09-13 15:42:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-10-21 22:40:33 +01:00
|
|
|
owner = "whipper-team";
|
2018-09-13 15:42:28 +01:00
|
|
|
repo = "whipper";
|
|
|
|
rev = "v${version}";
|
2018-12-22 10:10:47 +00:00
|
|
|
sha256 = "0ypbgc458i7yvbyvg6wg6agz5yzlwm1v6zw7fmyq9h59xsv27mpr";
|
2018-09-13 15:42:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = with python2.pkgs; [
|
2018-12-01 00:35:25 +00:00
|
|
|
pygobject3 musicbrainzngs urllib3 chardet
|
2018-10-05 07:22:26 +01:00
|
|
|
pycdio setuptools mutagen CDDB
|
2018-09-13 15:42:28 +01:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python2.pkgs; [
|
|
|
|
twisted
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths.patch;
|
2018-12-01 00:35:25 +00:00
|
|
|
inherit cdparanoia;
|
2018-09-13 15:42:28 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-12-01 00:35:25 +00:00
|
|
|
makeWrapperArgs = [
|
2019-09-09 00:38:31 +01:00
|
|
|
"--prefix" "PATH" ":" (stdenv.lib.makeBinPath [ accuraterip-checksum cdrdao utillinux flac sox ])
|
2018-12-01 00:35:25 +00:00
|
|
|
];
|
|
|
|
|
2018-09-13 15:42:28 +01:00
|
|
|
# some tests require internet access
|
|
|
|
# https://github.com/JoeLametta/whipper/issues/291
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-10-21 22:40:33 +01:00
|
|
|
homepage = https://github.com/whipper-team/whipper;
|
2018-09-13 15:42:28 +01:00
|
|
|
description = "A CD ripper aiming for accuracy over speed";
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ rycee ];
|
2018-09-13 15:42:28 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|