2019-01-10 17:12:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, attrs
|
|
|
|
, audio-metadata
|
2020-04-02 08:21:45 +01:00
|
|
|
, importlib-metadata
|
2019-01-10 17:12:52 +00:00
|
|
|
, marshmallow
|
|
|
|
, pendulum
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-music-proto";
|
2020-04-02 08:21:45 +01:00
|
|
|
version = "2.8.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-01-10 17:12:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-02 08:21:45 +01:00
|
|
|
sha256 = "10qraipdr18pwnr1dz6ai5vxs9lmww5wbavbh1xyg4lsggmlsrqb";
|
2019-01-10 17:12:52 +00:00
|
|
|
};
|
|
|
|
|
2020-04-02 08:21:45 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e "/audio-metadata/c\'audio-metadata'," -e "/marshmallow/c\'marshmallow'," setup.py
|
|
|
|
'';
|
|
|
|
|
2019-01-10 17:12:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
audio-metadata
|
|
|
|
marshmallow
|
|
|
|
pendulum
|
|
|
|
protobuf
|
2020-04-02 08:21:45 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2019-01-10 17:12:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
2020-04-02 08:21:45 +01:00
|
|
|
pythonImportsCheck = [ "google_music_proto" ];
|
2019-01-10 17:12:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-02 08:21:45 +01:00
|
|
|
homepage = "https://github.com/thebigmunch/google-music-proto";
|
2019-01-10 17:12:52 +00:00
|
|
|
description = "Sans-I/O wrapper of Google Music API calls";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|