2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
orjson,
|
|
|
|
pandas,
|
|
|
|
poetry-core,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
tqdm,
|
|
|
|
typer,
|
|
|
|
websocket-client,
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coinmetrics-api-client";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2024.7.11.18";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "coinmetrics_api_client";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-o8SVup50hD2BzQQ3Z5wANHWEhZDOl0FH7iTmYTJnkYw=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "typer" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
orjson
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
typer
|
2023-10-09 19:29:22 +00:00
|
|
|
tqdm
|
2022-12-28 21:21:41 +00:00
|
|
|
websocket-client
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
2022-12-28 21:21:41 +00:00
|
|
|
] ++ passthru.optional-dependencies.pandas;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "coinmetrics.api_client" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
pandas = [ pandas ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Coin Metrics API v4 client library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "coinmetrics";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ centromere ];
|
|
|
|
};
|
|
|
|
}
|