2017-05-07 01:38:59 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
2017-05-07 12:00:52 +01:00
|
|
|
, requests
|
2017-05-07 01:38:59 +01:00
|
|
|
, enum34
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libsoundtouch";
|
2017-05-21 22:23:57 +01:00
|
|
|
version = "0.4.0";
|
2017-05-07 01:38:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CharlesBlonde";
|
|
|
|
repo = "libsoundtouch";
|
2017-05-21 22:23:57 +01:00
|
|
|
rev = "875074b7a23734021974345b3dc297918e453aa2";
|
|
|
|
sha256 = "1psd556j4x77hjxahxxgdgnq2mcd769whvnf0gmwf3jy2svfkqlg";
|
2017-05-07 01:38:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
|
|
|
|
substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
|
|
|
|
'';
|
|
|
|
|
2017-05-07 12:00:52 +01:00
|
|
|
propagatedBuildInputs = [ requests enum34 ];
|
2017-05-07 01:38:59 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Bose Soundtouch Python library";
|
|
|
|
homepage = https://github.com/CharlesBlonde/libsoundtouch;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|