at 24.11-pre 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 freezegun, 8 mock, 9 geopy, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "pyipma"; 17 version = "3.0.7"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "dgomes"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-a6UXc8XLZhSyUb8AxnXoPgiyP004GQfuapRmVeOaFQU="; 27 }; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 geopy 32 ]; 33 34 nativeCheckInputs = [ 35 aioresponses 36 freezegun 37 mock 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "pyipma" ]; 43 44 disabledTestPaths = [ 45 # Tests require network access 46 "tests/test_auxiliar.py" 47 "tests/test_location.py" 48 "tests/test_sea_forecast.py" 49 ]; 50 51 meta = with lib; { 52 description = "Library to retrieve information from Instituto Português do Mar e Atmosfera"; 53 homepage = "https://github.com/dgomes/pyipma"; 54 changelog = "https://github.com/dgomes/pyipma/releases/tag/${version}"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}