1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2, audio-metadata, multidict, wrapt
3, pytest
4}:
5
6buildPythonPackage rec {
7 pname = "google-music-utils";
8 version = "2.1.0";
9
10 # Pypi tarball doesn't contain tests
11 src = fetchFromGitHub {
12 owner = "thebigmunch";
13 repo = "google-music-utils";
14 rev = version;
15 sha256 = "0fn4zp0gf1wx2x06dbc840qcq21j4p3ajghxp7646w2n6n9gxhh7";
16 };
17
18 propagatedBuildInputs = [
19 audio-metadata multidict wrapt
20 ];
21
22 checkInputs = [ pytest ];
23 checkPhase = ''
24 pytest
25 '';
26
27 disabled = pythonOlder "3.6";
28
29 meta = with lib; {
30 homepage = "https://github.com/thebigmunch/google-music-utils";
31 description = "A set of utility functionality for google-music and related projects";
32 license = licenses.mit;
33 maintainers = with maintainers; [ jakewaksbaum ];
34 };
35}