Merge pull request #332770 from dotlambda/python3Packages.mypermobil

home-assistant: support permobil component
This commit is contained in:
Martin Weinelt 2024-08-06 23:46:52 +02:00 committed by GitHub
commit efcb904a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiocache,
aiohttp,
aiounittest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mypermobil";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "Permobil-Software";
repo = "mypermobil";
rev = "refs/tags/v${version}";
hash = "sha256-linnaRyA45EzqeSeNmvIE5gXkHA2F504U1++QBeRa90=";
};
build-system = [ setuptools ];
dependencies = [
aiocache
aiohttp
];
pythonImportsCheck = [ "mypermobil" ];
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
disabledTests = [
# requires networking
"test_region"
];
meta = {
changelog = "https://github.com/Permobil-Software/mypermobil/releases/tag/v${version}";
description = "Python wrapper for the MyPermobil API";
homepage = "https://github.com/Permobil-Software/mypermobil";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -3356,7 +3356,8 @@
"pepco" = ps: with ps; [
];
"permobil" = ps: with ps; [
]; # missing inputs: mypermobil
mypermobil
];
"persistent_notification" = ps: with ps; [
];
"person" = ps: with ps; [
@ -5768,6 +5769,7 @@
"panel_iframe"
"peco"
"pegel_online"
"permobil"
"persistent_notification"
"person"
"philips_js"

View File

@ -8128,6 +8128,8 @@ self: super: with self; {
myjwt = callPackage ../development/python-modules/myjwt { };
mypermobil = callPackage ../development/python-modules/mypermobil { };
mypy = callPackage ../development/python-modules/mypy { };
mypy-boto3-builder = callPackage ../development/python-modules/mypy-boto3-builder { };