python3Packages.google-music-proto

This commit is contained in:
Jonathan Ringer 2020-04-02 00:21:45 -07:00 committed by Jon
parent 4c1789f5e4
commit c38615cc8a

View File

@ -1,6 +1,7 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder { lib, buildPythonPackage, fetchPypi, pythonOlder
, attrs , attrs
, audio-metadata , audio-metadata
, importlib-metadata
, marshmallow , marshmallow
, pendulum , pendulum
, protobuf , protobuf
@ -8,28 +9,34 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-music-proto"; pname = "google-music-proto";
version = "2.5.1"; version = "2.8.0";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "94cd205b3cb0d9e36f3724ace259d4c6de04db97e095577a26a5cfa5e35844c6"; sha256 = "10qraipdr18pwnr1dz6ai5vxs9lmww5wbavbh1xyg4lsggmlsrqb";
}; };
postPatch = ''
sed -i -e "/audio-metadata/c\'audio-metadata'," -e "/marshmallow/c\'marshmallow'," setup.py
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
attrs attrs
audio-metadata audio-metadata
marshmallow marshmallow
pendulum pendulum
protobuf protobuf
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
]; ];
# No tests # No tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "google_music_proto" ];
disabled = pythonOlder "3.6";
meta = with lib; { meta = with lib; {
homepage = https://github.com/thebigmunch/google-music-proto; homepage = "https://github.com/thebigmunch/google-music-proto";
description = "Sans-I/O wrapper of Google Music API calls"; description = "Sans-I/O wrapper of Google Music API calls";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ]; maintainers = with maintainers; [ jakewaksbaum ];