Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / gios / default.nix
blob1d972641d3923e025d96710cacc8077f85c2b021
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , dacite
6 , fetchFromGitHub
7 , pytest-asyncio
8 , pytest-error-for-skips
9 , pytestCheckHook
10 , pythonOlder
11 , setuptools
12 , syrupy
15 buildPythonPackage rec {
16   pname = "gios";
17   version = "4.0.0";
18   pyproject = true;
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "bieniu";
24     repo = "gios";
25     rev = "refs/tags/${version}";
26     hash = "sha256-rjC4zWWtaPxuBcjiO9dVsXD4dTa47iwkKuSFx+QXeXw=";
27   };
29   build-system = [
30     setuptools
31   ];
33   dependencies = [
34     aiohttp
35     dacite
36   ];
38   nativeCheckInputs = [
39     aioresponses
40     pytest-asyncio
41     pytest-error-for-skips
42     pytestCheckHook
43     syrupy
44   ];
46   disabledTests = [
47     # Test requires network access
48     "test_invalid_station_id"
49   ];
51   pythonImportsCheck = [
52     "gios"
53   ];
55   meta = with lib; {
56     description = "Python client for getting air quality data from GIOS";
57     homepage = "https://github.com/bieniu/gios";
58     changelog = "https://github.com/bieniu/gios/releases/tag/${version}";
59     license = licenses.asl20;
60     maintainers = with maintainers; [ fab ];
61   };