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

52 lines
1.2 KiB
Nix
Raw Normal View History

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