2017-05-06 17:38:59 -07:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-01-25 00:26:54 -08:00
|
|
|
|
2017-05-06 17:38:59 -07:00
|
|
|
, lib
|
|
|
|
, pythonOlder
|
2017-05-07 04:00:52 -07:00
|
|
|
, requests
|
2017-05-06 17:38:59 -07:00
|
|
|
, enum34
|
|
|
|
}:
|
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
buildPythonPackage {
|
2017-05-06 17:38:59 -07:00
|
|
|
pname = "libsoundtouch";
|
2017-05-21 14:23:57 -07:00
|
|
|
version = "0.4.0";
|
2017-05-06 17:38:59 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CharlesBlonde";
|
|
|
|
repo = "libsoundtouch";
|
2017-05-21 14:23:57 -07:00
|
|
|
rev = "875074b7a23734021974345b3dc297918e453aa2";
|
|
|
|
sha256 = "1psd556j4x77hjxahxxgdgnq2mcd769whvnf0gmwf3jy2svfkqlg";
|
2017-05-06 17:38:59 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
|
|
|
|
substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
|
|
|
|
'';
|
|
|
|
|
2017-05-07 04:00:52 -07:00
|
|
|
propagatedBuildInputs = [ requests enum34 ];
|
2017-05-06 17:38:59 -07:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-05-06 17:38:59 -07:00
|
|
|
description = "Bose Soundtouch Python library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/CharlesBlonde/libsoundtouch";
|
2017-05-06 17:38:59 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|