1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
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}";
2018-12-01 00:35:25 +00:00
version = "0.7.2";
src = fetchFromGitHub {
2018-10-21 22:40:33 +01:00
owner = "whipper-team";
repo = "whipper";
rev = "v${version}";
2018-12-01 00:35:25 +00:00
sha256 = "17cn11c6c62pfhhp6vcslxpanb0czh2xbxq1g6wd7bpmgw38yd8v";
};
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 = [
"--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 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 jgeerds ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}