From 3775c5a66437e9624405e23dfecbb6d7d8331c72 Mon Sep 17 00:00:00 2001
From: emaryn <emaryn@users.noreply.github.com>
Date: Tue, 25 Feb 2025 19:52:54 +0800
Subject: [PATCH] openrazer-daemon: 3.9.0 -> 3.10.0

---
 .../python-modules/openrazer/common.nix            | 14 +++++++-------
 .../python-modules/openrazer/daemon.nix            |  4 +++-
 .../development/python-modules/openrazer/pylib.nix |  2 +-
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/pkgs/development/python-modules/openrazer/common.nix b/pkgs/development/python-modules/openrazer/common.nix
index a54f14c996029..8478b03a8133c 100644
--- a/pkgs/development/python-modules/openrazer/common.nix
+++ b/pkgs/development/python-modules/openrazer/common.nix
@@ -1,19 +1,19 @@
 { lib, fetchFromGitHub }:
 rec {
-  version = "3.9.0";
+  version = "3.10.0";
   pyproject = true;
 
   src = fetchFromGitHub {
     owner = "openrazer";
     repo = "openrazer";
-    rev = "v${version}";
-    hash = "sha256-MLwhqLPWdjg1ZUZP5Sig37RgZEeHlU+DyELpyMif6iY=";
+    tag = "v${version}";
+    hash = "sha256-F7lAWM/14texc1PVhch5R2oztcfkoub/9oGdjEmtTZ8=";
   };
 
-  meta = with lib; {
+  meta = {
     homepage = "https://openrazer.github.io/";
-    license = licenses.gpl2Only;
-    maintainers = with maintainers; [ evanjs ] ++ teams.lumiguide.members;
-    platforms = platforms.linux;
+    license = lib.licenses.gpl2Only;
+    maintainers = with lib.maintainers; [ evanjs ] ++ lib.teams.lumiguide.members;
+    platforms = lib.platforms.linux;
   };
 }
diff --git a/pkgs/development/python-modules/openrazer/daemon.nix b/pkgs/development/python-modules/openrazer/daemon.nix
index 0bcfd6b516540..ac6f14869203d 100644
--- a/pkgs/development/python-modules/openrazer/daemon.nix
+++ b/pkgs/development/python-modules/openrazer/daemon.nix
@@ -33,6 +33,8 @@ buildPythonPackage (
     postPatch = ''
       substituteInPlace openrazer_daemon/daemon.py \
         --replace-fail "plugdev" "openrazer"
+      substituteInPlace run_openrazer_daemon.py \
+        --replace-fail "/usr" "$out"
     '';
 
     nativeBuildInputs = [
@@ -46,7 +48,7 @@ buildPythonPackage (
       gtk3
     ];
 
-    propagatedBuildInputs = [
+    dependencies = [
       daemonize
       dbus-python
       pygobject3
diff --git a/pkgs/development/python-modules/openrazer/pylib.nix b/pkgs/development/python-modules/openrazer/pylib.nix
index 577f8595aba6b..9f711dafa64e2 100644
--- a/pkgs/development/python-modules/openrazer/pylib.nix
+++ b/pkgs/development/python-modules/openrazer/pylib.nix
@@ -20,7 +20,7 @@ buildPythonPackage (
 
     nativeBuildInputs = [ setuptools ];
 
-    propagatedBuildInputs = [
+    dependencies = [
       dbus-python
       numpy
       openrazer-daemon
