Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / env-canada / default.nix
blobf11b85d8bf7b64074e62330f789d4313d7e464d5
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , geopy
6 , imageio
7 , lxml
8 , pandas
9 , pillow
10 , pytestCheckHook
11 , python-dateutil
12 , pythonOlder
13 , voluptuous
16 buildPythonPackage rec {
17   pname = "env-canada";
18   version = "0.6.1";
19   format = "setuptools";
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "michaeldavie";
25     repo = "env_canada";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-6p4holWMAoaosmTL8AveRGuBS/MymC7usvK3I7CBEKQ=";
28   };
30   propagatedBuildInputs = [
31     aiohttp
32     geopy
33     imageio
34     lxml
35     pandas
36     pillow
37     python-dateutil
38     voluptuous
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ];
45   disabledTests = [
46     # Tests require network access
47     "test_get_aqhi_regions"
48     "test_update"
49     "test_get_hydro_sites"
50     "test_echydro"
51     "test_get_dimensions"
52     "test_get_latest_frame"
53     "test_get_loop"
54     "test_get_ec_sites"
55     "test_ecradar"
56   ];
58   pythonImportsCheck = [
59     "env_canada"
60   ];
62   meta = with lib; {
63     description = "Python library to get Environment Canada weather data";
64     homepage = "https://github.com/michaeldavie/env_canada";
65     changelog = "https://github.com/michaeldavie/env_canada/blob/v${version}/CHANGELOG.md";
66     license = with licenses; [ mit ];
67     maintainers = with maintainers; [ fab ];
68   };