2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, orjson
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pythonOlder
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, typer
|
|
|
|
, websocket-client
|
|
|
|
}:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coinmetrics-api-client";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "2023.2.23.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
format = "pyproject";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-XZNGasNYmN4ulfG18M4n8qTO06kSyLoZQj64LzXdl34=";
|
2022-09-09 14:08:57 +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
|
|
|
|
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
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"coinmetrics.api_client"
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
optional-dependencies = {
|
|
|
|
pandas = [ pandas ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Coin Metrics API v4 client library";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|