Unverified Commit 3ad09d0d authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #204716 from SuperSandro2000/python310Packages.openrazer

parents 173a0bb2 e2c79b3e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
{ 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;
+12 −9
Original line number Diff line number Diff line
@@ -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";
  };
+4 −1
Original line number Diff line number Diff line
@@ -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";
  };