1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/audio/google-music-scripts/default.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2019-01-10 23:15:00 +00:00
{ lib, python3 }:
2020-07-04 15:42:19 +01:00
let
py = python3.override {
packageOverrides = self: super: {
loguru = super.loguru.overridePythonAttrs (oldAttrs: rec {
version = "0.4.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "0j47cg3gi8in4z6z4w3by6x02mpkkfl78gr85xjn5rg0nxiz7pfm";
};
});
};
};
in
with py.pkgs;
2020-04-02 08:26:24 +01:00
buildPythonApplication rec {
2019-01-10 23:15:00 +00:00
pname = "google-music-scripts";
2020-07-04 15:42:19 +01:00
version = "4.5.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-07-04 15:42:19 +01:00
sha256 = "0apwgj86whrc077dfymvyb4qwj19bawyrx49g4kg364895v0rbbq";
2019-01-10 23:15:00 +00:00
};
2020-07-04 15:42:19 +01:00
# pendulum pinning was to prevent PEP517 from trying to build from source
2020-04-02 08:26:24 +01:00
postPatch = ''
substituteInPlace setup.py \
2020-07-04 15:42:19 +01:00
--replace "tomlkit>=0.5,<0.6" "tomlkit" \
--replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum"
2020-04-02 08:26:24 +01:00
'';
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 ];
};
}