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