nixpkgs/pkgs/development/python-modules/google-music-proto/default.nix

45 lines
984 B
Nix
Raw Normal View History

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