2019-01-10 17:18:21 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, appdirs
|
|
|
|
, audio-metadata
|
|
|
|
, google-music-proto
|
2020-04-02 08:23:09 +01:00
|
|
|
, httpx
|
2019-01-10 17:18:21 +00:00
|
|
|
, protobuf
|
|
|
|
, requests_oauthlib
|
|
|
|
, tenacity
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-music";
|
2020-06-06 07:47:09 +01:00
|
|
|
version = "3.7.0";
|
2019-01-10 17:18:21 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:09 +01:00
|
|
|
sha256 = "b79956cc0df86345c74436ae6213b700345403c91d51947288806b174322573b";
|
2019-01-10 17:18:21 +00:00
|
|
|
};
|
|
|
|
|
2019-03-15 18:56:28 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2020-04-02 08:23:09 +01:00
|
|
|
--replace "audio-metadata>=0.8,<0.9" "audio-metadata"
|
2019-03-15 18:56:28 +00:00
|
|
|
'';
|
|
|
|
|
2019-01-10 17:18:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
audio-metadata
|
|
|
|
google-music-proto
|
2020-04-02 08:23:09 +01:00
|
|
|
httpx
|
2019-01-10 17:18:21 +00:00
|
|
|
protobuf
|
|
|
|
requests_oauthlib
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/thebigmunch/google-music";
|
2019-01-10 17:18:21 +00:00
|
|
|
description = "A Google Music API wrapper";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|