depot/third_party/nixpkgs/pkgs/development/python-modules/coinmetrics-api-client/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
orjson,
pandas,
poetry-core,
pytest-mock,
pytestCheckHook,
python-dateutil,
pythonOlder,
requests,
tqdm,
typer,
websocket-client,
}:
buildPythonPackage rec {
pname = "coinmetrics-api-client";
version = "2024.10.4.15";
pyproject = true;
disabled = pythonOlder "3.9";
__darwinAllowLocalNetworking = true;
src = fetchPypi {
inherit version;
pname = "coinmetrics_api_client";
hash = "sha256-4Ru614cCTMrAhelkVjDuHo7VcGYqaVeeAfaQkdBZr7k=";
};
pythonRelaxDeps = [ "typer" ];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
orjson
python-dateutil
requests
typer
tqdm
websocket-client
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
] ++ optional-dependencies.pandas;
pythonImportsCheck = [ "coinmetrics.api_client" ];
optional-dependencies = {
pandas = [ pandas ];
};
meta = with lib; {
description = "Coin Metrics API v4 client library";
mainProgram = "coinmetrics";
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
license = licenses.mit;
maintainers = with maintainers; [ centromere ];
};
}