2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
geopy,
|
|
|
|
imageio,
|
|
|
|
lxml,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
voluptuous,
|
2021-07-03 03:11:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "env-canada";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.7.1";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michaeldavie";
|
|
|
|
repo = "env_canada";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-GWNGLhnXr8NOrR5stOjHbk9X+BObs1sbG6lWn2apPQI=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2021-07-03 03:11:41 +00:00
|
|
|
aiohttp
|
|
|
|
geopy
|
|
|
|
imageio
|
2021-08-11 14:56:57 +00:00
|
|
|
lxml
|
2022-09-09 14:08:57 +00:00
|
|
|
pandas
|
2021-07-03 03:11:41 +00:00
|
|
|
pillow
|
|
|
|
python-dateutil
|
2021-09-22 15:38:15 +00:00
|
|
|
voluptuous
|
2021-07-03 03:11:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_get_aqhi_regions"
|
|
|
|
"test_update"
|
|
|
|
"test_get_hydro_sites"
|
|
|
|
"test_echydro"
|
|
|
|
"test_get_dimensions"
|
|
|
|
"test_get_latest_frame"
|
|
|
|
"test_get_loop"
|
|
|
|
"test_get_ec_sites"
|
2021-07-24 12:14:16 +00:00
|
|
|
"test_ecradar"
|
2021-07-03 03:11:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "env_canada" ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to get Environment Canada weather data";
|
|
|
|
homepage = "https://github.com/michaeldavie/env_canada";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/michaeldavie/env_canada/blob/v${version}/CHANGELOG.md";
|
2021-07-03 03:11:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|