ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / gios / default.nix
blob5597238626257a2404593aec91f42f00e5aeb68a
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , dacite
6 , fetchFromGitHub
7 , pytest-asyncio
8 , pytest-error-for-skips
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "gios";
15   version = "2.1.0";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "bieniu";
21     repo = pname;
22     rev = version;
23     sha256 = "sha256-WjuDsu0EA+KtErusw5VADyvleVegXHCTEkuQ1lU/SRU=";
24   };
26   propagatedBuildInputs = [
27     aiohttp
28     dacite
29   ];
31   checkInputs = [
32     aioresponses
33     pytest-asyncio
34     pytest-error-for-skips
35     pytestCheckHook
36   ];
38   postPatch = ''
39     substituteInPlace setup.cfg \
40       --replace "--cov --cov-report term-missing " ""
41     substituteInPlace setup.py \
42       --replace "pytest-runner" ""
43   '';
45   disabledTests = [
46     # Test requires network access
47     "test_invalid_station_id"
48   ];
50   pythonImportsCheck = [ "gios" ];
52   meta = with lib; {
53     description = "Python client for getting air quality data from GIOS";
54     homepage = "https://github.com/bieniu/gios";
55     license = licenses.asl20;
56     maintainers = with maintainers; [ fab ];
57   };