git.iko.soy/typeable/nixpkgs
on master help sign in
google-music-scripts: 4.0.1 -> 4.3.0
commitaa1fea9f97aea1f3530b9fef6673d0dba612cfe9 authorJonathan Ringer <jonringer117@gmail.com> dateThu 2 Apr 2020, 00:26 (7 years ago) parentf329b29
2 files changed+15−30
pkgs/tools/audio/google-music-scripts/default.nix+15−8 pkgs/tools/audio/google-music-scripts/loguru.patch−22
pkgs/tools/audio/google-music-scripts/default.nix+15−8
@@ -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 ];
pkgs/tools/audio/google-music-scripts/loguru.patchdeleted−22
@@ -1,22 +0,0 @@
1−--- a/pyproject.toml
2−+++ b/pyproject.toml
3−@@ -24,7 +24,7 @@ audio-metadata = "^0.4"
4− google-music = "^3.0"
5− google-music-proto = "^2.4"
6− google-music-utils = "^2.1"
7−-loguru = "^0.2"
8−+loguru = "^0.3"
9− pendulum = "^2.0"
10− natsort = ">=5.0,<7.0"
11− tomlkit = "^0.5"
12−--- a/setup.py
13−+++ b/setup.py
14−@@ -16,7 +16,7 @@ install_requires = \
15− 'google-music-proto>=2.4,<3.0',
16− 'google-music-utils>=2.1,<3.0',
17− 'google-music>=3.0,<4.0',
18−- 'loguru>=0.2,<0.3',
19−+ 'loguru>=0.3,<0.4',
20− 'natsort>=5.0,<7.0',
21− 'pendulum>=2.0,<3.0',
22− 'tomlkit>=0.5,<0.6']