python3Packages.python-sn2: init at 0.4.0

This commit is contained in:
Jamie Magee
2026-03-23 11:17:35 -07:00
parent ecca25535d
commit 239cb47ab1
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,45 @@
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-asyncio,
setuptools,
websockets,
}:
buildPythonPackage (finalAttrs: {
pname = "python-sn2";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "konsulten";
repo = "python-sn2";
tag = "v${finalAttrs.version}";
hash = "sha256-7IrfTjww2K64qIQ6dGMcTja1/dV5/wt+pcx6ZLW9KEA=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
websockets
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [ "sn2" ];
meta = {
description = "Python library for SystemNexa2 device integration";
homepage = "https://github.com/konsulten/python-sn2";
changelog = "https://github.com/konsulten/python-sn2/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})
+2
View File
@@ -15882,6 +15882,8 @@ self: super: with self; {
python-smarttub = callPackage ../development/python-modules/python-smarttub { };
python-sn2 = callPackage ../development/python-modules/python-sn2 { };
python-snap7 = callPackage ../development/python-modules/python-snap7 { inherit (pkgs) snap7; };
python-snappy = callPackage ../development/python-modules/python-snappy {