diff --git a/pkgs/development/python-modules/pyosoenergyapi/default.nix b/pkgs/development/python-modules/pyosoenergyapi/default.nix new file mode 100644 index 000000000000..243c3abb483d --- /dev/null +++ b/pkgs/development/python-modules/pyosoenergyapi/default.nix @@ -0,0 +1,51 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + loguru, + numpy, + setuptools, + unasync, + urllib3, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "pyosoenergyapi"; + version = "1.2.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "osohotwateriot"; + repo = "apyosohotwaterapi"; + tag = version; + hash = "sha256-hpbmiSOLawKVSh7BGV70bRi45HCDKmdxEEhCOdJuIww="; + }; + + build-system = [ + setuptools + unasync + writableTmpDirAsHomeHook + ]; + + dependencies = [ + aiohttp + loguru + numpy + urllib3 + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "pyosoenergyapi" ]; + + meta = { + description = "Python library to interface with the OSO Energy API"; + homepage = "https://github.com/osohotwateriot/apyosohotwaterapi"; + changelog = "https://github.com/osohotwateriot/apyosohotwaterapi/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 540f3546f9ba..d6c4432e01fc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13588,6 +13588,8 @@ self: super: with self; { pyosmium = callPackage ../development/python-modules/pyosmium { inherit (pkgs) lz4; }; + pyosoenergyapi = callPackage ../development/python-modules/pyosoenergyapi { }; + pyosohotwaterapi = callPackage ../development/python-modules/pyosohotwaterapi { }; pyotb = callPackage ../development/python-modules/pyotb { };