1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 poetry-core, 7 pytest-asyncio, 8 pytest-httpx, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "aiocurrencylayer"; 15 version = "1.0.6"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.10"; 19 20 src = fetchFromGitHub { 21 owner = "home-assistant-ecosystem"; 22 repo = "aiocurrencylayer"; 23 tag = version; 24 hash = "sha256-VOzgWN+dDPaGEcahFPSWjBR989b9eNkx4zcnI9o2Xiw="; 25 }; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 propagatedBuildInputs = [ httpx ]; 30 31 nativeCheckInputs = [ 32 pytest-asyncio 33 pytest-httpx 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "aiocurrencylayer" ]; 38 39 meta = with lib; { 40 description = "Python API for interacting with currencylayer"; 41 homepage = "https://github.com/home-assistant-ecosystem/aiocurrencylayer"; 42 changelog = "https://github.com/home-assistant-ecosystem/aiocurrencylayer/releases/tag/${version}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}