Unverified Commit efcb904a authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #332770 from dotlambda/python3Packages.mypermobil

home-assistant: support permobil component
parents 9d938b4e b6866e38
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -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 { };