nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python39Packages.coinmetrics-api-client: use optional-dependencies for test deps

authored by

Fabian Affolter and committed by
GitHub
391de01d 42943086

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