Files
nixpkgs/pkgs/development/python-modules/coinmetrics-api-client/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

67 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
orjson,
pandas,
poetry-core,
polars,
pytest-mock,
pytestCheckHook,
python-dateutil,
pyyaml,
requests,
tqdm,
typer,
websocket-client,
}:
buildPythonPackage rec {
pname = "coinmetrics-api-client";
version = "2025.10.21.15";
pyproject = true;
__darwinAllowLocalNetworking = true;
src = fetchPypi {
inherit version;
pname = "coinmetrics_api_client";
hash = "sha256-OtC6Sy32faZAZqMVUure4RmPj2LCe4Ifwy+5xmZ0g8U=";
};
pythonRelaxDeps = [ "typer" ];
build-system = [ poetry-core ];
dependencies = [
orjson
python-dateutil
pyyaml
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 = {
description = "Coin Metrics API v4 client library";
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ centromere ];
mainProgram = "coinmetrics";
};
}