2022-09-09 14:08:57 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, orjson, pandas, poetry-core
|
|
|
|
, pytestCheckHook, pytest-mock, pythonOlder, python-dateutil, requests, typer
|
|
|
|
, websocket-client }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coinmetrics-api-client";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "2022.9.22.15";
|
2022-09-09 14:08:57 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-37tuZDsGQAmbWSEGc7rjrXtCoSxuBN3MDMmjWHr0eS4=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
orjson python-dateutil requests typer websocket-client
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "coinmetrics.api_client" ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
optional-dependencies = {
|
|
|
|
pandas = [ pandas ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
|
|
|
|
description = "Coin Metrics API v4 client library (Python)";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ centromere ];
|
|
|
|
};
|
|
|
|
}
|