summary refs log tree commit diff
path: root/pkgs/tools/audio/google-music-scripts/default.nix
blob: f95dcc8bb6dd9301ec306eaf23967f28d0284a53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib, python3 }:

with python3.pkgs;

buildPythonApplication rec {
  pname = "google-music-scripts";
  version = "4.3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0dykjhqklbpqr1lvls0bgf6xkwvslj37lx4q8522hjbs150pwjmq";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "audio-metadata>=0.8,<0.9" "audio-metadata"
  '';

  propagatedBuildInputs = [
    appdirs
    audio-metadata
    google-music
    google-music-proto
    google-music-utils
    loguru
    pendulum
    natsort
    tomlkit
  ];

  # No tests
  checkPhase = ''
    $out/bin/gms --help >/dev/null
  '';

  meta = with lib; {
    homepage = "https://github.com/thebigmunch/google-music-scripts";
    description = "A CLI utility for interacting with Google Music";
    license = licenses.mit;
    maintainers = with maintainers; [ jakewaksbaum ];
  };
}