2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-05-24 13:37:59 +00:00
|
|
|
, nix-update-script
|
2022-12-28 21:21:41 +00:00
|
|
|
, orjson
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pythonOlder
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, typer
|
|
|
|
, websocket-client
|
|
|
|
}:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coinmetrics-api-client";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2023.5.2.20";
|
2022-09-09 14:08:57 +00:00
|
|
|
format = "pyproject";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "coinmetrics_api_client";
|
|
|
|
hash = "sha256-20+qoCaSNGw4DVlW3USrSkg3fckqF77TQ7wmSsuZ3ek=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
orjson
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
typer
|
|
|
|
websocket-client
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
2022-12-28 21:21:41 +00:00
|
|
|
] ++ passthru.optional-dependencies.pandas;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"coinmetrics.api_client"
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
optional-dependencies = {
|
|
|
|
pandas = [ pandas ];
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Coin Metrics API v4 client library";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ centromere ];
|
|
|
|
};
|
|
|
|
}
|