1{ buildPythonPackage, fetchPypi, lib, orjson, pandas, poetry-core 2, pytestCheckHook, pytest-mock, pythonOlder, python-dateutil, requests, typer 3, websocket-client }: 4 5buildPythonPackage rec { 6 pname = "coinmetrics-api-client"; 7 version = "2022.9.22.15"; 8 format = "pyproject"; 9 disabled = pythonOlder "3.7"; 10 11 src = fetchPypi { 12 inherit pname version; 13 hash = "sha256-37tuZDsGQAmbWSEGc7rjrXtCoSxuBN3MDMmjWHr0eS4="; 14 }; 15 16 nativeBuildInputs = [ poetry-core ]; 17 18 propagatedBuildInputs = [ 19 orjson python-dateutil requests typer websocket-client 20 ]; 21 22 checkInputs = [ 23 pandas 24 pytestCheckHook 25 pytest-mock 26 ]; 27 28 pythonImportsCheck = [ "coinmetrics.api_client" ]; 29 30 passthru = { 31 optional-dependencies = { 32 pandas = [ pandas ]; 33 }; 34 }; 35 36 meta = with lib; { 37 homepage = "https://coinmetrics.github.io/api-client-python/site/index.html"; 38 description = "Coin Metrics API v4 client library (Python)"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ centromere ]; 41 }; 42}