python3Packages.aiocurrencylayer: init at 1.0.2

This commit is contained in:
Fabian Affolter 2021-11-23 17:59:12 +01:00 committed by Jonathan Ringer
parent 95aad79a50
commit 80f8ca3392
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, poetry-core
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiocurrencylayer";
version = "1.0.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = pname;
rev = version;
sha256 = "EVqnrMatOk2I6hiCkiT5FOWvMY9LEK8LlSHqi0x9kuQ=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
httpx
];
checkInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [
"aiocurrencylayer"
];
meta = with lib; {
description = "Python API for interacting with currencylayer";
homepage = "https://github.com/home-assistant-ecosystem/aiocurrencylayer";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -267,6 +267,8 @@ in {
aiocontextvars = callPackage ../development/python-modules/aiocontextvars { };
aiocurrencylayer = callPackage ../development/python-modules/aiocurrencylayer { };
aiodiscover = callPackage ../development/python-modules/aiodiscover { };
aiodns = callPackage ../development/python-modules/aiodns { };