Skip to content

Commit

Permalink
Merge pull request #216195 from fabaff/aioambient-at
Browse files Browse the repository at this point in the history
python311Packages.aioambient: drop asynctest
  • Loading branch information
davidak authored Feb 16, 2023
2 parents 41be9ac + fa786e1 commit 2923082
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkgs/development/python-modules/aioambient/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
Expand All @@ -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 = [
Expand All @@ -47,7 +46,6 @@ buildPythonPackage rec {

nativeCheckInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
Expand All @@ -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 ];
};
Expand Down

0 comments on commit 2923082

Please sign in to comment.