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}:
12
13buildPythonPackage rec {
14 pname = "gios";
15 version = "3.2.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "bieniu";
22 repo = pname;
23 rev = "refs/tags/${version}";
24 hash = "sha256-ACWaYXAxLpqfjPG7KngFrErbMKo9iSsW2Yi8V0q9Ie0=";
25 };
26
27 propagatedBuildInputs = [
28 aiohttp
29 dacite
30 ];
31
32 nativeCheckInputs = [
33 aioresponses
34 pytest-asyncio
35 pytest-error-for-skips
36 pytestCheckHook
37 ];
38
39 disabledTests = [
40 # Test requires network access
41 "test_invalid_station_id"
42 ];
43
44 pythonImportsCheck = [
45 "gios"
46 ];
47
48 meta = with lib; {
49 description = "Python client for getting air quality data from GIOS";
50 homepage = "https://github.com/bieniu/gios";
51 changelog = "https://github.com/bieniu/gios/releases/tag/${version}";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ fab ];
54 };
55}