Unverified Commit 2923082c authored by davidak's avatar davidak Committed by GitHub
Browse files

Merge pull request #216195 from fabaff/aioambient-at

python311Packages.aioambient: drop asynctest
parents 41be9acc fa786e1e
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
@@ -19,19 +18,19 @@ buildPythonPackage rec {
  version = "2022.10.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "bachya";
    repo = pname;
    rev = version;
    sha256 = "sha256-Oppi4J0TuLbqwVn1Hpa4xcU9c/I+YDP3E0VXwiP8a/w=";
    rev = "refs/tags/${version}";
    hash = "sha256-Oppi4J0TuLbqwVn1Hpa4xcU9c/I+YDP3E0VXwiP8a/w=";
  };

  postPatch = ''
    # https://github.com/bachya/aioambient/pull/97
    substituteInPlace pyproject.toml \
      --replace 'websockets = ">=8.1,<10.0"' 'websockets = ">=8.1,<11.0"'
      --replace 'websockets = ">=9.1,<11.0"' 'websockets = "*"'
  '';

  nativeBuildInputs = [
@@ -47,7 +46,6 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    aresponses
    asynctest
    pytest-aiohttp
    pytest-asyncio
    pytestCheckHook
@@ -65,6 +63,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python library for the Ambient Weather API";
    homepage = "https://github.com/bachya/aioambient";
    changelog = "https://github.com/bachya/aioambient/releases/tag/${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };