Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 61 lines 1.1 kB view raw
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}: 15 16buildPythonPackage rec { 17 pname = "coinmetrics-api-client"; 18 version = "2022.11.14.16"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-2x8S9Jj/1bBnhXS/x0lQ8YUQkCvfpgGcDSQU2dGbAn0="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 orjson 34 python-dateutil 35 requests 36 typer 37 websocket-client 38 ]; 39 40 checkInputs = [ 41 pytestCheckHook 42 pytest-mock 43 ] ++ passthru.optional-dependencies.pandas; 44 45 pythonImportsCheck = [ 46 "coinmetrics.api_client" 47 ]; 48 49 passthru = { 50 optional-dependencies = { 51 pandas = [ pandas ]; 52 }; 53 }; 54 55 meta = with lib; { 56 description = "Coin Metrics API v4 client library"; 57 homepage = "https://coinmetrics.github.io/api-client-python/site/index.html"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ centromere ]; 60 }; 61}