about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2024-02-05 15:48:28 +0000
committerGitHub <noreply@github.com>2024-02-05 15:48:28 +0000
commit729eb05518172994fce468632621d172b9d17568 (patch)
tree5fd8b21ed9761b09cd84259ae0f2c24adb99a8fc /pkgs/applications/audio
parent053489f6e4bfbef32a5e72ad809aa472e05650cf (diff)
parentf2e95cfc72929819ddeb7f9e4e228e27f3716ec2 (diff)
downloadnixlib-729eb05518172994fce468632621d172b9d17568.tar
nixlib-729eb05518172994fce468632621d172b9d17568.tar.gz
nixlib-729eb05518172994fce468632621d172b9d17568.tar.bz2
nixlib-729eb05518172994fce468632621d172b9d17568.tar.lz
nixlib-729eb05518172994fce468632621d172b9d17568.tar.xz
nixlib-729eb05518172994fce468632621d172b9d17568.tar.zst
nixlib-729eb05518172994fce468632621d172b9d17568.zip
Merge pull request #284673 from dotlambda/mopidy-ytmusic-0.3.9
mopidy-ytmusic: 0.3.8 -> 0.3.9
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/mopidy/ytmusic.nix40
1 files changed, 20 insertions, 20 deletions
diff --git a/pkgs/applications/audio/mopidy/ytmusic.nix b/pkgs/applications/audio/mopidy/ytmusic.nix
index d09bc6c8dde6..6981be30b2ea 100644
--- a/pkgs/applications/audio/mopidy/ytmusic.nix
+++ b/pkgs/applications/audio/mopidy/ytmusic.nix
@@ -1,32 +1,32 @@
 { lib
 , python3
-, fetchPypi
+, fetchFromGitHub
 , mopidy
 }:
 
 let
-  python = python3.override {
-    packageOverrides = self: super: {
-      ytmusicapi = super.ytmusicapi.overridePythonAttrs (old: rec {
-        version = "0.25.1";
-        src = fetchPypi {
-          inherit (old) pname;
-          inherit version;
-          hash = "sha256-uc/fgDetSYaCRzff0SzfbRhs3TaKrfE2h6roWkkj8yQ=";
-        };
-      });
-    };
-  };
+  python = python3;
 in python.pkgs.buildPythonApplication rec {
   pname = "mopidy-ytmusic";
-  version = "0.3.8";
+  version = "0.3.9";
+  pyproject = true;
 
-  src = fetchPypi {
-    inherit version;
-    pname = "mopidy_ytmusic";
-    sha256 = "6b4d8ff9c477dbdd30d0259a009494ebe104cad3f8b37241ae503e5bce4ec2e8";
+  src = fetchFromGitHub {
+    owner = "jmcdo29";
+    repo = "mopidy-ytmusic";
+    rev = "v${version}";
+    hash = "sha256-2o4fDtaIxRDvIiAGV/9qK/00BmYXasBUwW03fxFcDAU=";
   };
 
+  postPatch = ''
+    # only setup.py has up to date dependencies
+    rm pyproject.toml
+  '';
+
+  nativeBuildInputs = with python.pkgs; [
+    setuptools
+  ];
+
   propagatedBuildInputs = [
     (mopidy.override { pythonPackages = python.pkgs; })
     python.pkgs.ytmusicapi
@@ -39,9 +39,9 @@ in python.pkgs.buildPythonApplication rec {
   doCheck = false;
 
   meta = with lib; {
-    changelog = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic/blob/v${version}/CHANGELOG.rst";
+    changelog = "https://github.com/jmcdo29/mopidy-ytmusic/releases/tag/${src.rev}";
     description = "Mopidy extension for playing music from YouTube Music";
-    homepage = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic";
+    homepage = "https://github.com/jmcdo29/mopidy-ytmusic";
     license = licenses.asl20;
     maintainers = [ maintainers.nickhu ];
   };