From 950404a7e6851b739d52662eefa1e7727482fbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 31 Aug 2024 18:57:55 -0700 Subject: [PATCH] python312Packages.pysmlight: init at 0.0.13 --- .../python-modules/pysmlight/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/pysmlight/default.nix diff --git a/pkgs/development/python-modules/pysmlight/default.nix b/pkgs/development/python-modules/pysmlight/default.nix new file mode 100644 index 000000000000..70905f16e636 --- /dev/null +++ b/pkgs/development/python-modules/pysmlight/default.nix @@ -0,0 +1,49 @@ +{ + aiohttp, + aiohttp-sse-client2, + aresponses, + buildPythonPackage, + fetchFromGitHub, + lib, + mashumaro, + poetry-core, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pysmlight"; + version = "0.0.13"; + pyproject = true; + + src = fetchFromGitHub { + owner = "smlight-tech"; + repo = "pysmlight"; + rev = "refs/tags/v${version}"; + hash = "sha256-yNTNcJGcTA7EN1JfbDaySCSfBx99vRKLQWqMG4OkC5k="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + aiohttp-sse-client2 + mashumaro + ]; + + pythonImportsCheck = [ "pysmlight" ]; + + nativeCheckInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/smlight-tech/pysmlight/releases/tag/v${version}"; + description = "Library implementing API control of the SMLIGHT SLZB-06 LAN Coordinators"; + homepage = "https://github.com/smlight-tech/pysmlight"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 644eb1b55ae6..f182ff803017 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12085,6 +12085,8 @@ self: super: with self; { pysml = callPackage ../development/python-modules/pysml { }; + pysmlight = callPackage ../development/python-modules/pysmlight { }; + pysmt = callPackage ../development/python-modules/pysmt { }; pysnmp = callPackage ../development/python-modules/pysnmp { };