depot/third_party/nixpkgs/pkgs/development/python-modules/coinmetrics-api-client/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

42 lines
1 KiB
Nix

{ buildPythonPackage, fetchPypi, lib, orjson, pandas, poetry-core
, pytestCheckHook, pytest-mock, pythonOlder, python-dateutil, requests, typer
, websocket-client }:
buildPythonPackage rec {
pname = "coinmetrics-api-client";
version = "2022.8.29.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EPPRKOdFbLLYw0K5C4nojR8GueekoFW7xIlwKeSV1EY=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
orjson python-dateutil requests typer websocket-client
];
checkInputs = [
pandas
pytestCheckHook
pytest-mock
];
pythonImportsCheck = [ "coinmetrics.api_client" ];
passthru = {
optional-dependencies = {
pandas = [ pandas ];
};
};
meta = with lib; {
homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
description = "Coin Metrics API v4 client library (Python)";
license = licenses.mit;
maintainers = with maintainers; [ centromere ];
};
}