2021-05-28 07:20:40 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
2021-07-27 16:22:11 +00:00
|
|
|
dacite,
|
2021-05-28 07:20:40 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-error-for-skips,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-04-21 09:58:11 +00:00
|
|
|
setuptools,
|
2024-04-21 09:59:46 +00:00
|
|
|
syrupy,
|
2021-05-28 07:20:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gios";
|
2024-10-12 21:52:59 +00:00
|
|
|
version = "5.0.0";
|
2024-04-21 09:58:11 +00:00
|
|
|
pyproject = true;
|
2021-10-03 17:01:09 +00:00
|
|
|
|
2024-04-21 09:59:46 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-05-28 07:20:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bieniu";
|
2024-04-21 09:58:11 +00:00
|
|
|
repo = "gios";
|
2023-02-27 01:14:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-12 21:52:59 +00:00
|
|
|
hash = "sha256-J+LCu7wMuc3dYghvkKq58GcBAa76X5IPUWe7qCQwjjI=";
|
2021-05-28 07:20:40 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 09:58:11 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-05-28 07:20:40 +00:00
|
|
|
aiohttp
|
2021-07-27 16:22:11 +00:00
|
|
|
dacite
|
2021-05-28 07:20:40 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-28 07:20:40 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-error-for-skips
|
|
|
|
pytestCheckHook
|
2024-04-21 09:59:46 +00:00
|
|
|
syrupy
|
2021-05-28 07:20:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_invalid_station_id"
|
|
|
|
];
|
|
|
|
|
2022-12-20 13:11:57 +00:00
|
|
|
pythonImportsCheck = [ "gios" ];
|
2021-05-28 07:20:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for getting air quality data from GIOS";
|
|
|
|
homepage = "https://github.com/bieniu/gios";
|
2022-12-20 13:11:57 +00:00
|
|
|
changelog = "https://github.com/bieniu/gios/releases/tag/${version}";
|
2021-05-28 07:20:40 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|