python313Packages.pyhik: init at 0.3.2 (#422977)

This commit is contained in:
Martin Weinelt
2025-07-07 00:46:13 +02:00
committed by GitHub
3 changed files with 54 additions and 1 deletions
@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "pyhik";
version = "0.3.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mezz64";
repo = "pyHik";
tag = version;
hash = "sha256-GqBHmwzQsnVGK1M2kKV3lQ3s7tsudoxmLC7xxGH55E0=";
};
build-system = [
setuptools
];
dependencies = [
requests
];
# Tests are disabled due to fragile XML namespace assertions
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyhik"
];
meta = {
description = "Python API to interact with a Hikvision camera event stream and toggle motion detection";
homepage = "https://github.com/mezz64/pyHik";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
@@ -2257,7 +2257,8 @@
];
"hikvision" =
ps: with ps; [
]; # missing inputs: pyHik
pyhik
];
"hikvisioncam" =
ps: with ps; [
hikvision
+2
View File
@@ -12844,6 +12844,8 @@ self: super: with self; {
pyhidra = callPackage ../development/python-modules/pyhidra { };
pyhik = callPackage ../development/python-modules/pyhik { };
pyhive-integration = callPackage ../development/python-modules/pyhive-integration { };
pyhocon = callPackage ../development/python-modules/pyhocon { };