3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #204716 from SuperSandro2000/python310Packages.openrazer

This commit is contained in:
Sandro 2022-12-14 23:54:03 +01:00 committed by GitHub
commit 3ad09d0df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 12 deletions

View file

@ -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;

View file

@ -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";
};

View file

@ -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";
};