depot/third_party/nixpkgs/pkgs/development/python-modules/env-canada/default.nix
Default email d9e13ed064 Project import generated by Copybara.
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
2021-09-22 23:38:15 +08:00

60 lines
1.1 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, geopy
, imageio
, lxml
, pillow
, pytestCheckHook
, python-dateutil
, voluptuous
}:
buildPythonPackage rec {
pname = "env-canada";
version = "0.5.12";
src = fetchFromGitHub {
owner = "michaeldavie";
repo = "env_canada";
rev = "v${version}";
sha256 = "sha256-yrvH0A/+QA9HiKa/ohw5q0IIyWff9s9zu6tT08mIT7w=";
};
propagatedBuildInputs = [
aiohttp
geopy
imageio
lxml
pillow
python-dateutil
voluptuous
];
checkInputs = [
pytestCheckHook
];
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"
"test_ecradar"
];
pythonImportsCheck = [ "env_canada" ];
meta = with lib; {
description = "Python library to get Environment Canada weather data";
homepage = "https://github.com/michaeldavie/env_canada";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}