1{ lib, buildPythonPackage, fetchPypi, pythonOlder
2, appdirs
3, audio-metadata
4, google-music-proto
5, protobuf
6, requests_oauthlib
7, tenacity
8}:
9
10buildPythonPackage rec {
11 pname = "google-music";
12 version = "3.0.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "13i9nd62wqfg0f5r7ykr15q83397vdpw0js50fy5nbgs33sbf6b7";
17 };
18
19 postPatch = ''
20 substituteInPlace setup.py \
21 --replace "audio-metadata>=0.3,<0.4" "audio-metadata"
22 '';
23
24 propagatedBuildInputs = [
25 appdirs
26 audio-metadata
27 google-music-proto
28 protobuf
29 requests_oauthlib
30 tenacity
31 ];
32
33 # No tests
34 doCheck = false;
35
36 disabled = pythonOlder "3.6";
37
38 meta = with lib; {
39 homepage = https://github.com/thebigmunch/google-music;
40 description = "A Google Music API wrapper";
41 license = licenses.mit;
42 maintainers = with maintainers; [ jakewaksbaum ];
43 };
44}