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 postPatch = '' 31 substituteInPlace pyproject.toml \ 32 --replace 'ujson = ">=1.35,<5.0"' 'ujson = "*"' 33 ''; 34 35 nativeBuildInputs = [ 36 poetry-core 37 ]; 38 39 propagatedBuildInputs = [ 40 aiohttp 41 aiocache 42 msgpack 43 ujson 44 ]; 45 46 checkInputs = [ 47 aresponses 48 pytest-asyncio 49 pytest-aiohttp 50 pytestCheckHook 51 ]; 52 53 disabledTestPaths = [ 54 # Ignore the examples directory as the files are prefixed with test_. 55 "examples/" 56 ]; 57 58 pythonImportsCheck = [ 59 "pyflunearyou" 60 ]; 61 62 meta = with lib; { 63 description = "Python library for retrieving UV-related information from Flu Near You"; 64 homepage = "https://github.com/bachya/pyflunearyou"; 65 license = with licenses; [ mit ]; 66 maintainers = with maintainers; [ fab ]; 67 }; 68}