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

Merge pull request #309131 from NixOS/home-assistant

home-assistant: 2024.4.4 -> 2024.5.0
parents 8040f2dc f619045a
Loading
Loading
Loading
Loading
+21 −27
Original line number Diff line number Diff line
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, freezegun
, mashumaro
, poetry-core
, pyjwt
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, syrupy
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  freezegun,
  mashumaro,
  poetry-core,
  pyjwt,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
  syrupy,
}:

buildPythonPackage rec {
  pname = "aioautomower";
  version = "2024.4.0";
  version = "2024.4.4";
  pyproject = true;

  disabled = pythonOlder "3.11";
@@ -24,21 +24,19 @@ buildPythonPackage rec {
    owner = "Thomas55555";
    repo = "aioautomower";
    rev = "refs/tags/${version}";
    hash = "sha256-W6aZdvg+EZKv0pmIaPOBaJaWipq3AENTVAVon/lFuI4=";
    hash = "sha256-/mwKomgY+yifN27bpCK9FjhbZRdllr471Ku+Kn2rUPM=";
  };

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

  nativeBuildInputs = [
    poetry-core
    setuptools
  ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    mashumaro
    pyjwt
@@ -51,13 +49,9 @@ buildPythonPackage rec {
    syrupy
  ];

  pythonImportsCheck = [
    "aioautomower"
  ];
  pythonImportsCheck = [ "aioautomower" ];

  pytestFlagsArray = [
    "--snapshot-update"
  ];
  pytestFlagsArray = [ "--snapshot-update" ];

  disabledTests = [
    # File is missing
+40 −13
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, pythonOlder
, fetchFromGitHub

# build-system
, setuptools

# dependencies
, aiohttp
, click
, incremental

# tests
, aioresponses
, pytest-aiohttp
, pytest-asyncio
, pytest-socket
, pytestCheckHook
, syrupy
}:

buildPythonPackage rec {
  pname = "aioazuredevops";
  version = "1.4.3";
  format = "setuptools";
  version = "2.0.0";
  pyproject = true;

  disabled = isPy27;
  disabled = pythonOlder "3.11";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-vNTvSQYjjptdPsHz0zM9paq3iodZrhcEralPm6YRZJE=";
  src = fetchFromGitHub {
    owner = "timmo001";
    repo = "aioazuredevops";
    rev = "refs/tags/${version}";
    hash = "sha256-QEIVAcBoTvuOeLN2kfDa3uYfrUm5Qu1TLp9C0uU+mW4=";
  };

  propagatedBuildInputs = [
  build-system = [
    incremental
    setuptools
  ];

  dependencies = [
    aiohttp
    click
    incremental
  ];

  # no tests implemented
  doCheck = false;
  nativeCheckInputs = [
    aioresponses
    pytest-aiohttp
    pytest-asyncio
    pytest-socket
    pytestCheckHook
    syrupy
  ];

  pythonImportsCheck = [
    "aioazuredevops.builds"
@@ -33,6 +59,7 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}";
    description = "Get data from the Azure DevOps API";
    mainProgram = "aioazuredevops";
    homepage = "https://github.com/timmo001/aioazuredevops";
+2 −2
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@

buildPythonPackage rec {
  pname = "aioesphomeapi";
  version = "23.2.0";
  version = "24.3.0";
  pyproject = true;

  disabled = pythonOlder "3.9";
@@ -34,7 +34,7 @@ buildPythonPackage rec {
    owner = "esphome";
    repo = "aioesphomeapi";
    rev = "refs/tags/v${version}";
    hash = "sha256-GFQ87Ic0xHXs8ZgmzH7kOFbDSNmtj0hx+YHKnrz/sG0=";
    hash = "sha256-wQR3dwN5O++TdtQh+Wcj7c7TNMaRj2lMlOuXOAPVU0Q=";
  };

  build-system = [
+56 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, poetry-core

# dependencies
, aiohttp
, isal

# tests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aiohttp-isal";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bdraco";
    repo = "aiohttp-isal";
    rev = "v${version}";
    hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    aiohttp
    isal
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  preCheck = ''
    sed -i '/addopts/d' pyproject.toml
  '';

  pythonImportsCheck = [
    "aiohttp_isal"
  ];

  meta = with lib; {
    changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md";
    description = "Isal support for aiohttp";
    homepage = "https://github.com/bdraco/aiohttp-isal";
    license = licenses.asl20;
    maintainers = with maintainers; [ hexa ];
  };
}
+59 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, setuptools

# dependencies
, aiohttp

# optional-dependencies
, aiomcache
, cryptography
, pynacl
, redis
}:

buildPythonPackage rec {
  pname = "aiohttp-session";
  version = "2.12.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "aio-libs";
    repo = "aiohttp-session";
    rev = "v${version}";
    hash = "sha256-7MNah4OIQnoxLoZkLOdeu5uCwSyPMhc6Wsht8dFconc=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    aiohttp
  ];

  optional-dependencies = {
    aioredis = [ redis ];
    aiomcache = [ aiomcache ];
    pycrypto = [ cryptography ];
    secure = [ cryptography ];
    pynacl = [ pynacl ];
  };

  doCheck = false; # runs redis in docker

  pythonImportsCheck = [
    "aiohttp_session"
  ];

  meta = with lib; {
    description = "Web sessions for aiohttp.web";
    homepage = "https://github.com/aio-libs/aiohttp-session";
    changelog = "https://github.com/aio-libs/aiohttp-session/blob/${src.rev}/CHANGES.txt";
    license = licenses.asl20;
    maintainers = with maintainers; [ hexa ];
  };
}
Loading