Merge pull request #240979 from fabaff/openrgb-python

python311Packages.openrgb-python: init at 0.2.15
This commit is contained in:
Sandro 2023-07-02 03:13:33 +02:00 committed by GitHub
commit e59d0ed541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 2 deletions

View File

@ -15,7 +15,6 @@ python3.pkgs.buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace '"openrgb-python~=0.2.10",' "" \
--replace "'rpi-ws281x>=4.3.0; platform_system == \"Linux\"'," "" \
--replace '"sentry-sdk==1.14.0",' "" \
--replace "~=" ">="
@ -31,7 +30,7 @@ python3.pkgs.buildPythonPackage rec {
icmplib
multidict
numpy
# openrgb-python # not packaged
openrgb-python
paho-mqtt
pillow
psutil

View File

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "openrgb-python";
version = "0.2.15";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rTfpqMM+IUd8rMmw/r15sICLoPHL6KLaRrmUjWTfUkA=";
};
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"openrgb"
];
meta = with lib; {
description = "Module for the OpenRGB SDK";
homepage = "https://openrgb-python.readthedocs.io/";
changelog = "https://github.com/jath03/openrgb-python/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -7207,6 +7207,8 @@ self: super: with self; {
openrazer-daemon = callPackage ../development/python-modules/openrazer/daemon.nix { };
openrgb-python = callPackage ../development/python-modules/openrgb-python { };
openrouteservice = callPackage ../development/python-modules/openrouteservice { };
opensearch-py = callPackage ../development/python-modules/opensearch-py { };