at master 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 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "pyipma"; 18 version = "3.0.9"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.11"; 22 23 src = fetchFromGitHub { 24 owner = "dgomes"; 25 repo = "pyipma"; 26 tag = version; 27 hash = "sha256-1EUOkNwNoZQEetJ5v6httas0S0a3bHLv/lDRXQsT/Ds="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 aiohttp 34 geopy 35 ]; 36 37 nativeCheckInputs = [ 38 aioresponses 39 freezegun 40 mock 41 pytest-asyncio 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "pyipma" ]; 46 47 disabledTestPaths = [ 48 # Tests require network access 49 "tests/test_auxiliar.py" 50 "tests/test_location.py" 51 "tests/test_sea_forecast.py" 52 ]; 53 54 meta = with lib; { 55 description = "Library to retrieve information from Instituto Português do Mar e Atmosfera"; 56 homepage = "https://github.com/dgomes/pyipma"; 57 changelog = "https://github.com/dgomes/pyipma/releases/tag/${src.tag}"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ fab ]; 60 }; 61}