From d5e5482fb4ead0861c524fb5f559dd4a00616551 Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Wed, 7 Aug 2024 11:55:01 +0200 Subject: [PATCH] python3Packages.somweb: init at 1.2.1 --- .../python-modules/somweb/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/somweb/default.nix diff --git a/pkgs/development/python-modules/somweb/default.nix b/pkgs/development/python-modules/somweb/default.nix new file mode 100644 index 000000000000..7abe33c14bf3 --- /dev/null +++ b/pkgs/development/python-modules/somweb/default.nix @@ -0,0 +1,41 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + requests, + setuptools, +}: + +buildPythonPackage rec { + pname = "somweb"; + version = "1.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "taarskog"; + repo = "pySOMweb"; + rev = "v${version}"; + hash = "sha256-cLKEKDCMK7lCtbmj2KbhgJUCZpPnPI5tZvO5L+ey8qI="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + requests + ]; + + pythonImportsCheck = [ "somweb" ]; + + doCheck = false; # no tests + + meta = with lib; { + changelog = "https://github.com/taarskog/pySOMweb/releases/tag/v${version}"; + description = "A client library to control garage door operators produced by SOMMER through their SOMweb device"; + homepage = "https://github.com/taarskog/pysomweb"; + license = licenses.mit; + maintainers = with maintainers; [ uvnikita ]; + mainProgram = "somweb"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aaf2f372f3e3..10732f8b37c0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14584,6 +14584,8 @@ self: super: with self; { somfy-mylink-synergy = callPackage ../development/python-modules/somfy-mylink-synergy { }; + somweb = callPackage ../development/python-modules/somweb { }; + sonarr = callPackage ../development/python-modules/sonarr { }; sonos-websocket = callPackage ../development/python-modules/sonos-websocket { };