nixpkgs/pkgs/tools/audio/google-music-scripts/default.nix

43 lines
861 B
Nix
Raw Normal View History

2019-01-11 00:15:00 +01:00
{ lib, python3 }:
2020-04-02 09:26:24 +02:00
with python3.pkgs;
buildPythonApplication rec {
2019-01-11 00:15:00 +01:00
pname = "google-music-scripts";
2020-04-02 09:26:24 +02:00
version = "4.3.0";
2019-01-11 00:15:00 +01:00
2020-04-02 09:26:24 +02:00
src = fetchPypi {
2019-01-11 00:15:00 +01:00
inherit pname version;
2020-04-02 09:26:24 +02:00
sha256 = "0dykjhqklbpqr1lvls0bgf6xkwvslj37lx4q8522hjbs150pwjmq";
2019-01-11 00:15:00 +01:00
};
2020-04-02 09:26:24 +02:00
postPatch = ''
substituteInPlace setup.py \
--replace "audio-metadata>=0.8,<0.9" "audio-metadata"
'';
2019-07-03 04:57:58 +02:00
2020-04-02 09:26:24 +02:00
propagatedBuildInputs = [
2019-01-11 00:15:00 +01:00
appdirs
audio-metadata
google-music
2019-03-15 19:53:14 +01:00
google-music-proto
2019-01-11 00:15:00 +01:00
google-music-utils
2019-07-03 04:57:58 +02:00
loguru
2019-03-15 19:53:14 +01:00
pendulum
natsort
2019-01-11 00:15:00 +01:00
tomlkit
];
# No tests
2020-04-02 09:26:24 +02:00
checkPhase = ''
$out/bin/gms --help >/dev/null
'';
2019-01-11 00:15:00 +01:00
meta = with lib; {
2020-04-02 09:26:24 +02:00
homepage = "https://github.com/thebigmunch/google-music-scripts";
2019-01-11 00:15:00 +01:00
description = "A CLI utility for interacting with Google Music";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}