Merge pull request #304648 from SuperSandro2000/openrazer
This commit is contained in:
commit
92fe08a95f
@ -1,14 +1,14 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
}: rec {
|
||||
version = "3.7.0";
|
||||
format = "setuptools";
|
||||
version = "3.8.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openrazer";
|
||||
repo = "openrazer";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-tjVWvJxcZ2maR99VRwMGCa+IK+1CjCc7jxAj4XkDUEw=";
|
||||
hash = "sha256-eV5xDFRQi0m95pL6e2phvblUbh5GEJ1ru1a62TnbGNk=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -1,6 +1,5 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, daemonize
|
||||
, dbus-python
|
||||
, fetchFromGitHub
|
||||
@ -10,6 +9,7 @@
|
||||
, pygobject3
|
||||
, pyudev
|
||||
, setproctitle
|
||||
, setuptools
|
||||
, wrapGAppsHook
|
||||
, notify2
|
||||
}:
|
||||
@ -20,17 +20,16 @@ in
|
||||
buildPythonPackage (common // {
|
||||
pname = "openrazer-daemon";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
sourceRoot = "${common.src.name}/daemon";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer"
|
||||
substituteInPlace openrazer_daemon/daemon.py \
|
||||
--replace-fail "plugdev" "openrazer"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
daemonize
|
||||
|
@ -4,6 +4,7 @@
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, openrazer-daemon
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
let
|
||||
@ -14,6 +15,8 @@ buildPythonPackage (common // {
|
||||
|
||||
sourceRoot = "${common.src.name}/pylib";
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dbus-python
|
||||
numpy
|
||||
|
Loading…
Reference in New Issue
Block a user