depot/third_party/nixpkgs/pkgs/development/python-modules/env-canada/default.nix
Default email 634fe97655 Project import generated by Copybara.
GitOrigin-RevId: 09c38c29f2c719cd76ca17a596c2fdac9e186ceb
2021-07-03 00:11:41 -03:00

55 lines
1 KiB
Nix

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