1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, geopy 6, imageio 7, lxml 8, pandas 9, pillow 10, pytestCheckHook 11, python-dateutil 12, pythonOlder 13, voluptuous 14}: 15 16buildPythonPackage rec { 17 pname = "env-canada"; 18 version = "0.6.0"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "michaeldavie"; 25 repo = "env_canada"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-YIU0fboXw2CHkAeC47pcXlZT2KPO0R1UolBVILlLoPg="; 28 }; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 geopy 33 imageio 34 lxml 35 pandas 36 pillow 37 python-dateutil 38 voluptuous 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 disabledTests = [ 46 # Tests require network access 47 "test_get_aqhi_regions" 48 "test_update" 49 "test_get_hydro_sites" 50 "test_echydro" 51 "test_get_dimensions" 52 "test_get_latest_frame" 53 "test_get_loop" 54 "test_get_ec_sites" 55 "test_ecradar" 56 ]; 57 58 pythonImportsCheck = [ 59 "env_canada" 60 ]; 61 62 meta = with lib; { 63 description = "Python library to get Environment Canada weather data"; 64 homepage = "https://github.com/michaeldavie/env_canada"; 65 changelog = "https://github.com/michaeldavie/env_canada/blob/v${version}/CHANGELOG.md"; 66 license = with licenses; [ mit ]; 67 maintainers = with maintainers; [ fab ]; 68 }; 69}