mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
67 lines
1.2 KiB
Nix
67 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.11.21.20";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "coinmetrics_api_client";
|
|
hash = "sha256-Xa5eWzckhlAGyfA1c0+Cs11ClOrRfYks2mdz2wBuPyo=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|