19 buildPythonPackage rec {
24 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
27 owner = "michaeldavie";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-3SVpzWii9/ViJ7mbrqzKmN5FkOOYTeYdhJll6q/IseU=";
33 build-system = [ setuptools ];
47 nativeCheckInputs = [ pytestCheckHook ];
50 # Tests require network access
51 "test_get_aqhi_regions"
53 "test_get_hydro_sites"
56 "test_get_latest_frame"
62 pythonImportsCheck = [ "env_canada" ];
65 description = "Python library to get Environment Canada weather data";
66 homepage = "https://github.com/michaeldavie/env_canada";
67 changelog = "https://github.com/michaeldavie/env_canada/blob/v${version}/CHANGELOG.md";
68 license = with licenses; [ mit ];
69 maintainers = with maintainers; [ fab ];