Merge pull request #204716 from SuperSandro2000/python310Packages.openrazer
This commit is contained in:
commit
3ad09d0df9
@ -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;
|
||||
|
@ -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";
|
||||
};
|
||||
|
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user