1{ lib 2, aiohttp 3, aioresponses 4, pydantic 5, buildPythonPackage 6, fetchFromGitHub 7, poetry-core 8, pytest-aiohttp 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "aioopenexchangerates"; 15 version = "0.4.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "MartinHjelmare"; 22 repo = pname; 23 rev = "v${version}"; 24 hash = "sha256-qm9B4m5CLhfqnZj+sdHZ+iA0+YnDR9Dh3lCy/YADkEI="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 pydantic 34 ]; 35 36 checkInputs = [ 37 aioresponses 38 pytest-aiohttp 39 pytestCheckHook 40 ]; 41 42 postPatch = '' 43 substituteInPlace pyproject.toml \ 44 --replace " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" 45 ''; 46 47 pythonImportsCheck = [ 48 "aioopenexchangerates" 49 ]; 50 51 meta = with lib; { 52 description = "Library for the Openexchangerates API"; 53 homepage = "https://github.com/MartinHjelmare/aioopenexchangerates"; 54 license = with licenses; [ asl20 ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}