nixpkgs/pkgs/development/python-modules/gios/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
Nix
Raw Normal View History

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,
syrupy,
2021-05-28 07:20:40 +00:00
}:
buildPythonPackage rec {
pname = "gios";
version = "5.0.0";
2024-04-21 09:58:11 +00:00
pyproject = true;
2021-10-03 17:01:09 +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}";
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
];
nativeCheckInputs = [
2021-05-28 07:20:40 +00:00
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
syrupy
2021-05-28 07:20:40 +00:00
];
disabledTests = [
# Test requires network access
"test_invalid_station_id"
];
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";
changelog = "https://github.com/bieniu/gios/releases/tag/${version}";
2021-05-28 07:20:40 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}