3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/google-music/default.nix

45 lines
888 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, appdirs
, audio-metadata
, google-music-proto
, protobuf
, requests_oauthlib
, tenacity
}:
buildPythonPackage rec {
pname = "google-music";
2019-10-24 07:47:31 +01:00
version = "3.1.0";
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:31 +01:00
sha256 = "5c6cb11d56dfe2cfb95f3083ed4c1347dafbf15a88fc9a7aab3ed5ee4c75cc40";
};
2019-03-15 18:56:28 +00:00
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 ];
};
}