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 22:40:33 +01:00
owner = "whipper-team";
repo = "whipper";
rev = "v${version}";
sha256 = "0ypbgc458i7yvbyvg6wg6agz5yzlwm1v6zw7fmyq9h59xsv27mpr";
};
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
requests
];
checkInputs = with python2.pkgs; [
twisted
];
patches = [
(substituteAll {
src = ./paths.patch;
2018-12-01 00:35:25 +00:00
inherit cdparanoia;
})
];
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
];
# 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;
description = "A CD ripper aiming for accuracy over speed";
maintainers = with maintainers; [ rycee ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}