diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-06-12 16:44:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 16:44:45 +0200 |
commit | 48b2f19db454883c88c537e9d12a2349620420d4 (patch) | |
tree | 67e4ebf52077086aa097abac2284f4edde90a7f4 /pkgs/development | |
parent | 963e7600133fb781f5d39aba8bfa0691b4fcbf55 (diff) | |
parent | 88ef833c2b8f356b52bc520d4624b3bf939ecef0 (diff) |
Merge pull request #319096 from NixOS/home-assistant
home-assistant: 2024.6.1 -> 2024.6.2
Diffstat (limited to 'pkgs/development')
6 files changed, 163 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/google-nest-sdm/default.nix b/pkgs/development/python-modules/google-nest-sdm/default.nix index a609f01ec79a9..c7f48ed25d50a 100644 --- a/pkgs/development/python-modules/google-nest-sdm/default.nix +++ b/pkgs/development/python-modules/google-nest-sdm/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "google-nest-sdm"; - version = "4.0.4"; + version = "4.0.5"; pyproject = true; disabled = pythonOlder "3.10"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "allenporter"; repo = "python-google-nest-sdm"; rev = "refs/tags/${version}"; - hash = "sha256-bvfc9FPUSCVaHxyICCXmUCbbc6Vdxba1Tv8dbi7Ax6M="; + hash = "sha256-SA2PlHiqvvbXmCg0WqehLDiIGEMDbzwbzbCX1klMHis="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/py-synologydsm-api/default.nix b/pkgs/development/python-modules/py-synologydsm-api/default.nix index a6c8f33c64129..e81173c5cae00 100644 --- a/pkgs/development/python-modules/py-synologydsm-api/default.nix +++ b/pkgs/development/python-modules/py-synologydsm-api/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "py-synologydsm-api"; - version = "2.4.3"; + version = "2.4.4"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "mib1185"; repo = "py-synologydsm-api"; rev = "refs/tags/v${version}"; - hash = "sha256-KhYK72kIPeZ32bdJ+3j8rcq/LIrcuELQD+/OQYhktog="; + hash = "sha256-46KoOKBiulTYH2x8ftFPVDF0oeBG1Pe9PkonxIV7528="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/pydantic/1.nix b/pkgs/development/python-modules/pydantic/1.nix index 72c09d5cdcf99..2b268d2bf543f 100644 --- a/pkgs/development/python-modules/pydantic/1.nix +++ b/pkgs/development/python-modules/pydantic/1.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "pydantic"; - version = "1.10.14"; + version = "1.10.16"; pyproject = true; disabled = pythonOlder "3.7"; @@ -25,7 +25,7 @@ buildPythonPackage rec { owner = "pydantic"; repo = "pydantic"; rev = "refs/tags/v${version}"; - hash = "sha256-tcaHSPZggVwyzCgDmwOgcGqUmUrJOmkdSNudJTFQ3bc="; + hash = "sha256-dn/ZsxbkyK2sJxpo6IsoMBRjq1STdu+xuqHXoNG+Kzk="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/pyopenweathermap/default.nix b/pkgs/development/python-modules/pyopenweathermap/default.nix new file mode 100644 index 0000000000000..f0e41e9e3b353 --- /dev/null +++ b/pkgs/development/python-modules/pyopenweathermap/default.nix @@ -0,0 +1,62 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + + # build-system + poetry-core, + + # dependencies + aiohttp, + + # tests + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pyopenweathermap"; + version = "0.0.9"; + pyproject = true; + + src = fetchFromGitHub { + owner = "freekode"; + repo = "pyopenweathermap"; + # https://github.com/freekode/pyopenweathermap/issues/2 + rev = "f8541960571591f47d74268d400dfd0d6c9adf67"; + hash = "sha256-hQotoRbTbcsDTwZ3/A4HkWi2ma3b9L0vvwH9ej8k1eE="; + }; + + patches = [ + (fetchpatch2 { + # https://github.com/freekode/pyopenweathermap/pull/3 + name = "pytest-network-mark.patch"; + url = "https://github.com/freekode/pyopenweathermap/commit/580ce4317fdffb267fc9122c3c2f8355f1178502.patch"; + hash = "sha256-dHopNTVO1sZgcMUYE1GrrMjbkwSFxNELIfXe2SyQrhw="; + }) + ]; + + build-system = [ poetry-core ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pytestFlagsArray = [ + "-m" + "'not network'" + ]; + + pythonImportsCheck = [ "pyopenweathermap" ]; + + meta = with lib; { + description = "Python library for OpenWeatherMap API for Home Assistant"; + homepage = "https://github.com/freekode/pyopenweathermap"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} diff --git a/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix b/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix index 3179f22b5a5ef..c831f7a0108cd 100644 --- a/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix +++ b/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix @@ -9,14 +9,14 @@ }: let pname = "tuya-device-sharing-sdk"; - version = "0.2.0"; + version = "0.1.9"; in buildPythonPackage { inherit pname version; src = fetchPypi { inherit pname version; - hash = "sha256-fu8zh59wlnxtstNbNL8mIm10tiXy22oPbi6oUy5x8c8="; + hash = "sha256-mBKR+ttBo0VF33pEmYdjbyM4bGgyDiYexIIsf8mXZW4="; }; # workaround needed, upstream issue: https://github.com/tuya/tuya-device-sharing-sdk/issues/10 diff --git a/pkgs/development/python-modules/uiprotect/default.nix b/pkgs/development/python-modules/uiprotect/default.nix new file mode 100644 index 0000000000000..678237b65c87f --- /dev/null +++ b/pkgs/development/python-modules/uiprotect/default.nix @@ -0,0 +1,93 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + poetry-core, + + # dependencies + aiofiles, + aiohttp, + aioshutil, + async-timeout, + dateparser, + orjson, + packaging, + pillow, + platformdirs, + pydantic, + pyjwt, + rich, + typer, + yarl, + + # tests + aiosqlite, + asttokens, + ffmpeg, + pytest-asyncio, + pytest-benchmark, + pytest-timeout, + pytest-xdist, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "uiprotect"; + version = "0.13.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "uilibs"; + repo = "uiprotect"; + rev = "v${version}"; + hash = "sha256-Laf8P77fLTTJqqUoGZUtGIVmitrXS1OQLeW8Gqu66NU="; + }; + + postPatch = '' + sed -i "/addopts =/d" pyproject.toml + ''; + + build-system = [ poetry-core ]; + + dependencies = [ + aiofiles + aiohttp + aioshutil + async-timeout + dateparser + orjson + packaging + pillow + platformdirs + pydantic + pyjwt + rich + typer + yarl + ]; + + nativeCheckInputs = [ + aiosqlite + asttokens + ffmpeg # Required for command ffprobe + pytest-asyncio + pytest-benchmark + pytest-timeout + pytest-xdist + pytestCheckHook + ]; + + pytestFlagsArray = [ "--benchmark-disable" ]; + + pythonImportsCheck = [ "uiprotect" ]; + + meta = with lib; { + description = "Python API for UniFi Protect (Unofficial"; + homepage = "https://github.com/uilibs/uiprotect"; + changelog = "https://github.com/uilibs/uiprotect/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} |