1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 poetry-core, 9 pytest-aiohttp, 10 pytest-cov-stub, 11 pytestCheckHook, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "aioopenexchangerates"; 17 version = "0.6.21"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "MartinHjelmare"; 24 repo = "aioopenexchangerates"; 25 tag = "v${version}"; 26 hash = "sha256-yPi2k1ajW+X78dF3OJTdGR3h8mzNfYCsW0P8baKUjoA="; 27 }; 28 29 pythonRelaxDeps = [ "pydantic" ]; 30 31 build-system = [ poetry-core ]; 32 33 dependencies = [ 34 aiohttp 35 mashumaro 36 ]; 37 38 nativeCheckInputs = [ 39 aioresponses 40 pytest-aiohttp 41 pytest-cov-stub 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "aioopenexchangerates" ]; 46 47 meta = with lib; { 48 description = "Library for the Openexchangerates API"; 49 homepage = "https://github.com/MartinHjelmare/aioopenexchangerates"; 50 changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/v${version}/CHANGELOG.md"; 51 license = with licenses; [ asl20 ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}