python3Packages.python-dali: init at 0.11 (#431120)

This commit is contained in:
Yohann Boniface
2025-08-06 02:48:10 +02:00
committed by GitHub
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,58 @@
{
lib,
fetchFromGitHub,
fetchpatch,
buildPythonPackage,
setuptools,
pyusb,
pymodbus,
pyserial-asyncio,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "python-dali";
version = "0.11";
pyproject = true;
src = fetchFromGitHub {
owner = "sde1000";
repo = "python-dali";
tag = "v${version}";
hash = "sha256-F/D0wyMVCUaL2SCdPKvnGS22tSgDnvUh6rs2ToKON2c=";
};
patches = [
# pymodbus 3.x support
(fetchpatch {
url = "https://github.com/sde1000/python-dali/commit/fe85b8fd9a746d16a03de8fd8c643ef4254d1ccd.patch";
hash = "sha256-bcfr948g7M6m3AQVArcYw9a22jA5eMim+J58iKci55s=";
})
];
build-system = [ setuptools ];
optional-dependencies = {
driver-unipi = [
pyusb
pymodbus
];
driver-serial = [ pyserial-asyncio ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
]
++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "dali" ];
meta = {
description = "IEC 62386 (DALI) lighting control library";
homepage = "https://github.com/sde1000/python-dali";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ sikmir ];
};
}
+2
View File
@@ -14483,6 +14483,8 @@ self: super: with self; {
python-daemon = callPackage ../development/python-modules/python-daemon { };
python-dali = callPackage ../development/python-modules/python-dali { };
python-datemath = callPackage ../development/python-modules/python-datemath { };
python-dateutil = callPackage ../development/python-modules/python-dateutil { };