Unverified Commit 97f47a17 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.coinmetrics-api-client: 2024.12.23.19 -> 2025.2.26.16 (#385362)

parents 0c10c062 1d30fcfb
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  orjson,
  pandas,
  poetry-core,
  polars,
  pytest-mock,
  pytestCheckHook,
  python-dateutil,
@@ -17,7 +18,7 @@

buildPythonPackage rec {
  pname = "coinmetrics-api-client";
  version = "2024.12.23.19";
  version = "2025.2.26.16";
  pyproject = true;

  disabled = pythonOlder "3.9";
@@ -27,16 +28,14 @@ buildPythonPackage rec {
  src = fetchPypi {
    inherit version;
    pname = "coinmetrics_api_client";
    hash = "sha256-AX+UFQ+Usq9MzbnlZjZQXw9cP6fhO78iFsh0KsbZfw4=";
    hash = "sha256-qkiSGXv7VmGS2rHpBGsGTzmb8rP0IOOR/vBAV0nni/c=";
  };

  pythonRelaxDeps = [ "typer" ];

  nativeBuildInputs = [
    poetry-core
  ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    orjson
    python-dateutil
    requests
@@ -45,22 +44,23 @@ buildPythonPackage rec {
    websocket-client
  ];

  optional-dependencies = {
    pandas = [ pandas ];
    polars = [ polars ];
  };

  nativeCheckInputs = [
    pytestCheckHook
    pytest-mock
  ] ++ optional-dependencies.pandas;
  ] ++ lib.flatten (builtins.attrValues optional-dependencies);

  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 ];
    mainProgram = "coinmetrics";
  };
}