Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, fetchPypi, orjson, pandas, poetry-core, polars, pytest-mock, pytestCheckHook, python-dateutil, pythonOlder, requests, tqdm, typer, websocket-client,}:
buildPythonPackage rec { pname = "coinmetrics-api-client"; version = "2025.5.6.13"; pyproject = true;
disabled = pythonOlder "3.9";
__darwinAllowLocalNetworking = true;
src = fetchPypi { inherit version; pname = "coinmetrics_api_client"; hash = "sha256-EUxgT+LK0s7IV+EWrLKgkNMsuhZBOUfMN1PLjub9JWQ="; };
pythonRelaxDeps = [ "typer" ];
build-system = [ poetry-core ];
dependencies = [ orjson python-dateutil requests typer tqdm websocket-client ];
optional-dependencies = { pandas = [ pandas ]; polars = [ polars ]; };
nativeCheckInputs = [ pytestCheckHook pytest-mock ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "coinmetrics.api_client" ];
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 ]; mainProgram = "coinmetrics"; };}