Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyipma / default.nix
blob9f74c16a0c067ea75adc189d905e2a0862aae076
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , freezegun
7 , mock
8 , geopy
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "pyipma";
16   version = "3.0.7";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "dgomes";
23     repo = pname;
24     rev = "refs/tags/${version}";
25     hash = "sha256-a6UXc8XLZhSyUb8AxnXoPgiyP004GQfuapRmVeOaFQU=";
26   };
28   propagatedBuildInputs = [
29     aiohttp
30     geopy
31   ];
33   nativeCheckInputs = [
34     aioresponses
35     freezegun
36     mock
37     pytest-asyncio
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [
42     "pyipma"
43   ];
45   disabledTestPaths = [
46     # Tests require network access
47     "tests/test_auxiliar.py"
48     "tests/test_location.py"
49     "tests/test_sea_forecast.py"
50   ];
52   meta = with lib; {
53     description = "Library to retrieve information from Instituto Português do Mar e Atmosfera";
54     homepage = "https://github.com/dgomes/pyipma";
55     changelog = "https://github.com/dgomes/pyipma/releases/tag/${version}";
56     license = with licenses; [ mit ];
57     maintainers = with maintainers; [ fab ];
58   };