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-01 00:35:25 +00:00
|
|
|
version = "0.7.2";
|
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-01 00:35:25 +00:00
|
|
|
sha256 = "17cn11c6c62pfhhp6vcslxpanb0czh2xbxq1g6wd7bpmgw38yd8v";
|
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 = [
|
|
|
|
"--prefix" "PATH" ":" "${stdenv.lib.makeBinPath [ accuraterip-checksum cdrdao utillinux flac sox ]}"
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
maintainers = with maintainers; [ rycee jgeerds ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|