depot/third_party/nixpkgs/pkgs/development/python-modules/coinmetrics-api-client/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00: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.15.19";
pyproject = true;
disabled = pythonOlder "3.9";
__darwinAllowLocalNetworking = true;
src = fetchPypi {
inherit version;
pname = "coinmetrics_api_client";
hash = "sha256-TNpF8OihU0Z/mAUF/5hxpZgaqIBRUfX7zhwZAKd7OEo=";
};
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 ];
};
}