Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / coinmetrics-api-client / default.nix
blob421be646d19e76c6db232a796ad7b34ee5a18788
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , orjson
5 , pandas
6 , poetry-core
7 , pytest-mock
8 , pytestCheckHook
9 , python-dateutil
10 , pythonOlder
11 , pythonRelaxDepsHook
12 , requests
13 , tqdm
14 , typer
15 , websocket-client
18 buildPythonPackage rec {
19   pname = "coinmetrics-api-client";
20   version = "2024.2.6.16";
21   pyproject = true;
23   disabled = pythonOlder "3.9";
25   __darwinAllowLocalNetworking = true;
27   src = fetchPypi {
28     inherit version;
29     pname = "coinmetrics_api_client";
30     hash = "sha256-rCj8nG7iQFJKs3Mic2wRZKBqx9T0lCPH5Po8k0nLppg=";
31   };
33   pythonRelaxDeps = [
34     "typer"
35   ];
37   nativeBuildInputs = [
38     poetry-core
39     pythonRelaxDepsHook
40   ];
42   propagatedBuildInputs = [
43     orjson
44     python-dateutil
45     requests
46     typer
47     tqdm
48     websocket-client
49   ];
51   nativeCheckInputs = [
52     pytestCheckHook
53     pytest-mock
54   ] ++ passthru.optional-dependencies.pandas;
56   pythonImportsCheck = [
57     "coinmetrics.api_client"
58   ];
60   passthru = {
61     optional-dependencies = {
62       pandas = [
63         pandas
64       ];
65     };
66   };
68   meta = with lib; {
69     description = "Coin Metrics API v4 client library";
70     mainProgram = "coinmetrics";
71     homepage = "https://coinmetrics.github.io/api-client-python/site/index.html";
72     license = licenses.mit;
73     maintainers = with maintainers; [ centromere ];
74   };