at 23.11-beta 1.1 kB view raw
1{ lib 2, aiohttp 3, aioresponses 4, buildPythonPackage 5, fetchFromGitHub 6, freezegun 7, mock 8, geopy 9, pytest-asyncio 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "pyipma"; 16 version = "3.0.7"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "dgomes"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-a6UXc8XLZhSyUb8AxnXoPgiyP004GQfuapRmVeOaFQU="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 geopy 31 ]; 32 33 nativeCheckInputs = [ 34 aioresponses 35 freezegun 36 mock 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "pyipma" 43 ]; 44 45 disabledTestPaths = [ 46 # Tests require network access 47 "tests/test_auxiliar.py" 48 "tests/test_location.py" 49 "tests/test_sea_forecast.py" 50 ]; 51 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 }; 59}