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.

61 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
2021-05-28 07:20:40 +00:00
}:
buildPythonPackage rec {
pname = "gios";
version = "3.2.2";
2024-04-21 09:58:11 +00:00
pyproject = true;
2021-10-03 17:01:09 +00:00
disabled = pythonOlder "3.8";
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-5CiKikhIZ+1pb5/NJ2XzpG1XHrkyuW1WUvvNEpxJIcw=";
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
];
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 ];
};
}