anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / env-canada / default.nix
blobce07ef171e1f042fb855282ededf84da7d6711aa
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   defusedxml,
6   fetchFromGitHub,
7   geopy,
8   imageio,
9   lxml,
10   pandas,
11   pillow,
12   pytestCheckHook,
13   python-dateutil,
14   pythonOlder,
15   setuptools,
16   voluptuous,
19 buildPythonPackage rec {
20   pname = "env-canada";
21   version = "0.7.2";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   src = fetchFromGitHub {
27     owner = "michaeldavie";
28     repo = "env_canada";
29     rev = "refs/tags/v${version}";
30     hash = "sha256-3SVpzWii9/ViJ7mbrqzKmN5FkOOYTeYdhJll6q/IseU=";
31   };
33   build-system = [ setuptools ];
35   dependencies = [
36     aiohttp
37     defusedxml
38     geopy
39     imageio
40     lxml
41     pandas
42     pillow
43     python-dateutil
44     voluptuous
45   ];
47   nativeCheckInputs = [ pytestCheckHook ];
49   disabledTests = [
50     # Tests require network access
51     "test_get_aqhi_regions"
52     "test_update"
53     "test_get_hydro_sites"
54     "test_echydro"
55     "test_get_dimensions"
56     "test_get_latest_frame"
57     "test_get_loop"
58     "test_get_ec_sites"
59     "test_ecradar"
60   ];
62   pythonImportsCheck = [ "env_canada" ];
64   meta = with lib; {
65     description = "Python library to get Environment Canada weather data";
66     homepage = "https://github.com/michaeldavie/env_canada";
67     changelog = "https://github.com/michaeldavie/env_canada/blob/v${version}/CHANGELOG.md";
68     license = with licenses; [ mit ];
69     maintainers = with maintainers; [ fab ];
70   };