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