python3Packages.pilight: init at 0.1.1 (#434151)

This commit is contained in:
Martin Weinelt
2025-08-16 20:51:46 +02:00
committed by GitHub
3 changed files with 44 additions and 1 deletions
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pilight";
version = "0.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "DavidLP";
repo = "pilight";
tag = version;
hash = "sha256-8KLEeyf1uwYjsBfIoi+736cu+We6OjLvptCXL539bDA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pilight/test/test_client.py \
--replace-fail "from mock import patch, call" "from unittest.mock import patch, call" \
--replace-fail "pilight_client.isAlive()" "pilight_client.is_alive()"
'';
pythonImportsCheck = [ "pilight" ];
meta = {
description = "Pure python module to connect to a pilight daemon to send and receive commands";
homepage = "https://github.com/DavidLP/pilight";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
@@ -4458,7 +4458,8 @@
];
"pilight" =
ps: with ps; [
]; # missing inputs: pilight
pilight
];
"pinecil" =
ps: with ps; [
];
@@ -7509,6 +7510,7 @@
"philips_js"
"pi_hole"
"picnic"
"pilight"
"ping"
"pjlink"
"plaato"
+2
View File
@@ -11630,6 +11630,8 @@ self: super: with self; {
pikepdf = callPackage ../development/python-modules/pikepdf { };
pilight = callPackage ../development/python-modules/pilight { };
pilkit = callPackage ../development/python-modules/pilkit { };
pillow = callPackage ../development/python-modules/pillow {