nixpkgs/pkgs/development/python-modules/openrazer/daemon.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
979 B
Nix
Raw Normal View History

{ lib
2022-10-28 22:55:13 +00:00
, buildPythonPackage
, isPy3k
2019-08-29 01:14:32 +00:00
, daemonize
, dbus-python
, fetchFromGitHub
, gobject-introspection
, gtk3
, makeWrapper
, pygobject3
, pyudev
, setproctitle
, wrapGAppsHook
}:
let
common = import ./common.nix { inherit lib fetchFromGitHub; };
2019-08-29 01:14:32 +00:00
in
buildPythonPackage (common // {
2019-08-29 01:14:32 +00:00
pname = "openrazer_daemon";
disabled = !isPy3k;
2019-08-29 01:14:32 +00:00
outputs = [ "out" "man" ];
prePatch = ''
cd daemon
'';
postPatch = ''
substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer"
'';
2019-08-29 01:14:32 +00:00
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
propagatedBuildInputs = [
daemonize
dbus-python
gobject-introspection
gtk3
pygobject3
pyudev
setproctitle
];
postBuild = ''
DESTDIR="$out" PREFIX="" make install manpages
'';
# no tests run
doCheck = false;
2019-08-29 01:14:32 +00:00
meta = common.meta // {
description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
};
})