1{ lib 2, aiohttp 3, aresponses 4, aiocache 5, buildPythonPackage 6, fetchFromGitHub 7, poetry-core 8, pytest-asyncio 9, pytest-aiohttp 10, pytestCheckHook 11, pythonOlder 12, msgpack 13, ujson 14}: 15 16buildPythonPackage rec { 17 pname = "pyflunearyou"; 18 version = "2021.10.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "bachya"; 25 repo = pname; 26 rev = version; 27 sha256 = "sha256-Q65OSE4qckpvaIvZULBR434i7hwuVM97eSq1Blb1oIU="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 propagatedBuildInputs = [ 35 aiohttp 36 aiocache 37 msgpack 38 ujson 39 ]; 40 41 checkInputs = [ 42 aresponses 43 pytest-asyncio 44 pytest-aiohttp 45 pytestCheckHook 46 ]; 47 48 disabledTestPaths = [ 49 # Ignore the examples directory as the files are prefixed with test_. 50 "examples/" 51 ]; 52 53 pythonImportsCheck = [ 54 "pyflunearyou" 55 ]; 56 57 meta = with lib; { 58 description = "Python library for retrieving UV-related information from Flu Near You"; 59 homepage = "https://github.com/bachya/pyflunearyou"; 60 license = with licenses; [ mit ]; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}