2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-engineio,
|
|
|
|
python-socketio,
|
|
|
|
pythonOlder,
|
|
|
|
websockets,
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioambient";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2024.01.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "aioambient";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-eqZVY0L+2BWF7cCXW/VLQYYXNPtUF6tJHQmeZNW1W5o=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-02-16 17:04:54 +00:00
|
|
|
aiohttp
|
2024-04-21 15:54:59 +00:00
|
|
|
certifi
|
2021-02-16 17:04:54 +00:00
|
|
|
python-engineio
|
|
|
|
python-socketio
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-16 17:04:54 +00:00
|
|
|
aresponses
|
2021-05-28 09:39:13 +00:00
|
|
|
pytest-aiohttp
|
2021-02-16 17:04:54 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Ignore the examples directory as the files are prefixed with test_
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "examples/" ];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aioambient" ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for the Ambient Weather API";
|
|
|
|
homepage = "https://github.com/bachya/aioambient";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/bachya/aioambient/releases/tag/${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|