depot/third_party/nixpkgs/pkgs/development/python-modules/openrazer/daemon.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, daemonize
, dbus-python
, fetchFromGitHub
, gobject-introspection
, gtk3
, makeWrapper
, pygobject3
, pyudev
, setproctitle
, setuptools
, wrapGAppsHook3
, notify2
}:
let
common = import ./common.nix { inherit lib fetchFromGitHub; };
in
buildPythonPackage (common // {
pname = "openrazer-daemon";
outputs = [ "out" "man" ];
sourceRoot = "${common.src.name}/daemon";
postPatch = ''
substituteInPlace openrazer_daemon/daemon.py \
--replace-fail "plugdev" "openrazer"
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
daemonize
dbus-python
gobject-introspection
gtk3
pygobject3
pyudev
setproctitle
notify2
];
postInstall = ''
DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd
'';
# 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";
mainProgram = "openrazer-daemon";
};
})