a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, orjson
|
|
, pandas
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pytest-mock
|
|
, pythonOlder
|
|
, python-dateutil
|
|
, requests
|
|
, typer
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coinmetrics-api-client";
|
|
version = "2022.11.14.16";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2x8S9Jj/1bBnhXS/x0lQ8YUQkCvfpgGcDSQU2dGbAn0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
orjson
|
|
python-dateutil
|
|
requests
|
|
typer
|
|
websocket-client
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
] ++ passthru.optional-dependencies.pandas;
|
|
|
|
pythonImportsCheck = [
|
|
"coinmetrics.api_client"
|
|
];
|
|
|
|
passthru = {
|
|
optional-dependencies = {
|
|
pandas = [ pandas ];
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Coin Metrics API v4 client library";
|
|
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ centromere ];
|
|
};
|
|
}
|