1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/tools/audio/google-music-scripts/default.nix
2020-04-02 10:04:28 -07:00

43 lines
861 B
Nix

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