Commit 7534a77b authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.aioautomower: int at 2024.2.4

Module to communicate with the Automower Connect API

https://github.com/Thomas55555/aioautomower
parent 36ab9337
Loading
Loading
Loading
Loading
+61 −0
Original line number Diff line number Diff line
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, mashumaro
, poetry-core
, pyjwt
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "aioautomower";
  version = "2024.2.4";
  pyproject = true;

  disabled = pythonOlder "3.11";

  src = fetchFromGitHub {
    owner = "Thomas55555";
    repo = "aioautomower";
    rev = "refs/tags/${version}";
    hash = "sha256-bgNfV87rHMbNGy8azCS0b6PgkalY2RrbSW2VtjtgPrw=";
  };

  postPatch = ''
    # Upstream doesn't set a version
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"'
  '';

  nativeBuildInputs = [
    poetry-core
    setuptools
  ];

  propagatedBuildInputs = [
    aiohttp
    mashumaro
    pyjwt
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "aioautomower"
  ];

  meta = with lib; {
    description = "Module to communicate with the Automower Connect API";
    homepage = "https://github.com/Thomas55555/aioautomower";
    changelog = "https://github.com/Thomas55555/aioautomower/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -167,6 +167,8 @@ self: super: with self; {
  aioasuswrt = callPackage ../development/python-modules/aioasuswrt { };
  aioautomower = callPackage ../development/python-modules/aioautomower { };
  aioazuredevops = callPackage ../development/python-modules/aioazuredevops { };
  aiobafi6 = callPackage ../development/python-modules/aiobafi6 { };