google-music-scripts: 4.0.1 -> 4.3.0

This commit is contained in:
Jonathan Ringer 2020-04-02 00:26:24 -07:00 committed by Jon
parent f329b29cb8
commit aa1fea9f97
2 changed files with 16 additions and 31 deletions

View File

@ -1,17 +1,22 @@
{ lib, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "google-music-scripts";
version = "4.0.1";
with python3.pkgs;
src = python3.pkgs.fetchPypi {
buildPythonApplication rec {
pname = "google-music-scripts";
version = "4.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "5b2e9fdde8781a6d226984f0b61add2415a3804123ceeecb20fcc8527de9389d";
sha256 = "0dykjhqklbpqr1lvls0bgf6xkwvslj37lx4q8522hjbs150pwjmq";
};
patches = [ ./loguru.patch ];
postPatch = ''
substituteInPlace setup.py \
--replace "audio-metadata>=0.8,<0.9" "audio-metadata"
'';
propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = [
appdirs
audio-metadata
google-music
@ -24,10 +29,12 @@ python3.pkgs.buildPythonApplication rec {
];
# No tests
doCheck = false;
checkPhase = ''
$out/bin/gms --help >/dev/null
'';
meta = with lib; {
homepage = https://github.com/thebigmunch/google-music-scripts;
homepage = "https://github.com/thebigmunch/google-music-scripts";
description = "A CLI utility for interacting with Google Music";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];

View File

@ -1,22 +0,0 @@
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,7 +24,7 @@ audio-metadata = "^0.4"
google-music = "^3.0"
google-music-proto = "^2.4"
google-music-utils = "^2.1"
-loguru = "^0.2"
+loguru = "^0.3"
pendulum = "^2.0"
natsort = ">=5.0,<7.0"
tomlkit = "^0.5"
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ install_requires = \
'google-music-proto>=2.4,<3.0',
'google-music-utils>=2.1,<3.0',
'google-music>=3.0,<4.0',
- 'loguru>=0.2,<0.3',
+ 'loguru>=0.3,<0.4',
'natsort>=5.0,<7.0',
'pendulum>=2.0,<3.0',
'tomlkit>=0.5,<0.6']