From 1d30fcfb0c062f21dc98d1ae4a5da329d4d61368 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 26 Feb 2025 20:50:31 +0100 Subject: [PATCH] python313Packages.coinmetrics-api-client: 2024.12.23.19 -> 2025.2.26.16 --- .../coinmetrics-api-client/default.nix | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/coinmetrics-api-client/default.nix b/pkgs/development/python-modules/coinmetrics-api-client/default.nix index f8ddd7971709..bb6e3200ac82 100644 --- a/pkgs/development/python-modules/coinmetrics-api-client/default.nix +++ b/pkgs/development/python-modules/coinmetrics-api-client/default.nix @@ -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"; }; }