summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-04-02 00:21:45 -0700
committerJon <jonringer@users.noreply.github.com>2020-04-02 10:04:28 -0700
commitc38615cc8a120210e4c249f5b7b039877405b293 (patch)
treef8f1426f5927909381cfff033c1658402cb9add4
parent4c1789f5e4d7a3f64da2c5367bdb54d552154cc1 (diff)
downloadnixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.tar
nixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.tar.gz
nixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.tar.bz2
nixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.tar.lz
nixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.tar.xz
nixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.tar.zst
nixpkgs-c38615cc8a120210e4c249f5b7b039877405b293.zip
python3Packages.google-music-proto
-rw-r--r--pkgs/development/python-modules/google-music-proto/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/google-music-proto/default.nix b/pkgs/development/python-modules/google-music-proto/default.nix
index d3f41880784..2645c4efad8 100644
--- a/pkgs/development/python-modules/google-music-proto/default.nix
+++ b/pkgs/development/python-modules/google-music-proto/default.nix
@@ -1,6 +1,7 @@
 { lib, buildPythonPackage, fetchPypi, pythonOlder
 , attrs
 , audio-metadata
+, importlib-metadata
 , marshmallow
 , pendulum
 , protobuf
@@ -8,28 +9,34 @@
 
 buildPythonPackage rec {
   pname = "google-music-proto";
-  version = "2.5.1";
+  version = "2.8.0";
+  disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "94cd205b3cb0d9e36f3724ace259d4c6de04db97e095577a26a5cfa5e35844c6";
+    sha256 = "10qraipdr18pwnr1dz6ai5vxs9lmww5wbavbh1xyg4lsggmlsrqb";
   };
 
+  postPatch = ''
+    sed -i -e "/audio-metadata/c\'audio-metadata'," -e "/marshmallow/c\'marshmallow'," setup.py
+  '';
+
   propagatedBuildInputs = [
     attrs
     audio-metadata
     marshmallow
     pendulum
     protobuf
+  ] ++ lib.optionals (pythonOlder "3.8") [
+    importlib-metadata
   ];
 
   # No tests
   doCheck = false;
-
-  disabled = pythonOlder "3.6";
+  pythonImportsCheck = [ "google_music_proto" ];
 
   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";
     license = licenses.mit;
     maintainers = with maintainers; [ jakewaksbaum ];