From e2c79b3e4a2d9e9ef4072417be10a8faf888d081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 6 Dec 2022 02:13:03 +0100 Subject: [PATCH] python310Packages.openrazer: 3.3.0 -> 3.5.1 Diff: https://github.com/openrazer/openrazer/compare/v3.3.0...v3.5.1 --- .../python-modules/openrazer/common.nix | 6 ++++-- .../python-modules/openrazer/daemon.nix | 21 +++++++++++-------- .../python-modules/openrazer/pylib.nix | 5 ++++- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/openrazer/common.nix b/pkgs/development/python-modules/openrazer/common.nix index 2f413a46d6c9..4d0fa4ed18b9 100644 --- a/pkgs/development/python-modules/openrazer/common.nix +++ b/pkgs/development/python-modules/openrazer/common.nix @@ -1,13 +1,15 @@ { lib , fetchFromGitHub }: rec { - version = "3.3.0"; + version = "3.5.1"; + src = fetchFromGitHub { owner = "openrazer"; repo = "openrazer"; rev = "v${version}"; - sha256 = "1lw2cpj2xzwcsn5igrqj3f6m2v5n6zp1xa9vv3j9f9r2fbb48jcl"; + sha256 = "sha256-6YU2tl17LpDZe9pQ1a+B2SGIhqGdwME3Db6umVz7RLc="; }; + meta = with lib; { homepage = "https://openrazer.github.io/"; license = licenses.gpl2Only; diff --git a/pkgs/development/python-modules/openrazer/daemon.nix b/pkgs/development/python-modules/openrazer/daemon.nix index 4c551bc7150f..31fbdc462682 100644 --- a/pkgs/development/python-modules/openrazer/daemon.nix +++ b/pkgs/development/python-modules/openrazer/daemon.nix @@ -16,13 +16,21 @@ let common = import ./common.nix { inherit lib fetchFromGitHub; }; in -buildPythonPackage (common // rec { +buildPythonPackage (common // { pname = "openrazer_daemon"; disabled = !isPy3k; outputs = [ "out" "man" ]; + prePatch = '' + cd daemon + ''; + + postPatch = '' + substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer" + ''; + nativeBuildInputs = [ makeWrapper wrapGAppsHook ]; propagatedBuildInputs = [ @@ -35,18 +43,13 @@ buildPythonPackage (common // rec { setproctitle ]; - prePatch = '' - cd daemon - ''; - - postPatch = '' - substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer" - ''; - postBuild = '' DESTDIR="$out" PREFIX="" make install manpages ''; + # no tests run + doCheck = false; + meta = common.meta // { description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux"; }; diff --git a/pkgs/development/python-modules/openrazer/pylib.nix b/pkgs/development/python-modules/openrazer/pylib.nix index fb83d64c5020..257fb589ba7b 100644 --- a/pkgs/development/python-modules/openrazer/pylib.nix +++ b/pkgs/development/python-modules/openrazer/pylib.nix @@ -9,7 +9,7 @@ let common = import ./common.nix { inherit lib fetchFromGitHub; }; in -buildPythonPackage (common // rec { +buildPythonPackage (common // { pname = "openrazer"; sourceRoot = "source/pylib"; @@ -20,6 +20,9 @@ buildPythonPackage (common // rec { openrazer-daemon ]; + # no tests run + doCheck = false; + meta = common.meta // { description = "An entirely open source Python library that allows you to manage your Razer peripherals on GNU/Linux"; };