nixpkgs/pkgs/development/python-modules/env-canada/default.nix
2021-08-10 22:23:30 +02:00

59 lines
1.1 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, geopy
, imageio
, lxml
, pillow
, pytestCheckHook
, python-dateutil
}:
buildPythonPackage rec {
pname = "env-canada";
version = "0.5.0";
src = fetchFromGitHub {
owner = "michaeldavie";
repo = "env_canada";
rev = "v${version}";
sha256 = "0dgw2mf760r1y0mq8bcvx6y3bcqpaf8p97rzf7pd0pbwvwrcsj3n";
};
propagatedBuildInputs = [
aiohttp
geopy
imageio
lxml
pillow
python-dateutil
];
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 ];
};
}