nixpkgs/pkgs/development/python-modules/google-music/default.nix
2019-03-15 20:17:45 +01:00

45 lines
876 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, appdirs
, audio-metadata
, google-music-proto
, protobuf
, requests_oauthlib
, tenacity
}:
buildPythonPackage rec {
pname = "google-music";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "13i9nd62wqfg0f5r7ykr15q83397vdpw0js50fy5nbgs33sbf6b7";
};
postPatch = ''
substituteInPlace setup.py \
--replace "audio-metadata>=0.3,<0.4" "audio-metadata"
'';
propagatedBuildInputs = [
appdirs
audio-metadata
google-music-proto
protobuf
requests_oauthlib
tenacity
];
# No tests
doCheck = false;
disabled = pythonOlder "3.6";
meta = with lib; {
homepage = https://github.com/thebigmunch/google-music;
description = "A Google Music API wrapper";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}