Unverified Commit 2fadcab8 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #332574 from fabaff/aioweenect-bump

python312Packages.aioweenect: 1.1.1 -> 1.1.2
parents 4ca5f40d 87801976
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@
  aresponses,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  hatchling,
  httpx,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
@@ -12,26 +13,31 @@

buildPythonPackage rec {
  pname = "aioweenect";
  version = "1.1.1";
  format = "pyproject";
  version = "1.1.2";
  pyproject = true;

  disabled = pythonOlder "3.8";
  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "eifinger";
    repo = pname;
    repo = "aioweenect";
    rev = "refs/tags/v${version}";
    hash = "sha256-9CYdOUPCt4TkepVuVJHMZngFHyCLFwVvik1xDnfneEc=";
    hash = "sha256-qVhF+gy5qcH/okuncDuzbAUPonkmQo1/QwOjC70IV4w=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "--cov --cov-report term-missing --cov-report xml --cov=aioweenect tests" ""
      --replace-fail "--cov --cov-report term-missing --cov=src/aioweenect --asyncio-mode=auto" ""
  '';

  nativeBuildInputs = [ poetry-core ];
  pythonRelaxDeps = [ "aiohttp" ];

  propagatedBuildInputs = [ aiohttp ];
  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    httpx
  ];

  nativeCheckInputs = [
    aresponses
@@ -44,6 +50,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Library for the weenect API";
    homepage = "https://github.com/eifinger/aioweenect";
    changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };