3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/audio/google-music-scripts/default.nix

43 lines
861 B
Nix
Raw Normal View History

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