1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
lib,
buildPythonPackage,
fetchPypi,
orjson,
pandas,
poetry-core,
polars,
pytest-mock,
pytestCheckHook,
python-dateutil,
pyyaml,
requests,
tqdm,
typer,
websocket-client,
}:
buildPythonPackage rec {
pname = "coinmetrics-api-client";
version = "2026.1.14.15";
pyproject = true;
__darwinAllowLocalNetworking = true;
src = fetchPypi {
inherit version;
pname = "coinmetrics_api_client";
hash = "sha256-0gNZ1A9BO/LebOvYLbUmQmMnBi4H5QeX7GdU6SVUWNs=";
};
pythonRelaxDeps = [ "typer" ];
build-system = [ poetry-core ];
dependencies = [
orjson
python-dateutil
pyyaml
requests
typer
tqdm
websocket-client
];
optional-dependencies = {
pandas = [ pandas ];
polars = [ polars ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-mock
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "coinmetrics.api_client" ];
meta = {
description = "Coin Metrics API v4 client library";
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ centromere ];
mainProgram = "coinmetrics";
};
}
|