@@ -1,17 +1,22 @@
11{ lib, python3 }:
22
3−python3.pkgs.buildPythonApplication rec {
3+with python3.pkgs;
4+
5+buildPythonApplication rec {
46 pname = "google-music-scripts";
5− version = "4.0.1";
7+ version = "4.3.0";
68
7− src = python3.pkgs.fetchPypi {
9+ src = fetchPypi {
810 inherit pname version;
9− sha256 = "5b2e9fdde8781a6d226984f0b61add2415a3804123ceeecb20fcc8527de9389d";
11+ sha256 = "0dykjhqklbpqr1lvls0bgf6xkwvslj37lx4q8522hjbs150pwjmq";
1012 };
1113
12− patches = [ ./loguru.patch ];
14+ postPatch = ''
15+ substituteInPlace setup.py \
16+ --replace "audio-metadata>=0.8,<0.9" "audio-metadata"
17+ '';
1318
14− propagatedBuildInputs = with python3.pkgs; [
19+ propagatedBuildInputs = [
1520 appdirs
1621 audio-metadata
1722 google-music
@@ -24,10 +29,12 @@ python3.pkgs.buildPythonApplication rec {
2429 ];
2530
2631 # No tests
27− doCheck = false;
32+ checkPhase = ''
33+ $out/bin/gms --help >/dev/null
34+ '';
2835
2936 meta = with lib; {
30− homepage = https://github.com/thebigmunch/google-music-scripts;
37+ homepage = "https://github.com/thebigmunch/google-music-scripts";
3138 description = "A CLI utility for interacting with Google Music";
3239 license = licenses.mit;
3340 maintainers = with maintainers; [ jakewaksbaum ];