summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/blockfrost-python/default.nix
blob: a8da8d6e45cb6346363a6b07ff6e58f4d21a3ae6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchFromGitHub
# Python deps
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "blockfrost-python";
  version = "0.6.0";

  format = "pyproject";

  src = fetchFromGitHub {
    owner = "blockfrost";
    repo = "blockfrost-python";
    rev = "refs/tags/${version}";
    hash = "sha256-mN26QXxizDR+o2V5C2MlqVEbRns1BTmwZdUnnHNcFzw=";
  };

  propagatedBuildInputs = [
    requests
    setuptools
  ];

  pythonImportsCheck = [ "blockfrost" ];

  meta = with lib; {
    description = "Python SDK for the Blockfrost.io API";
    homepage = "https://github.com/blockfrost/blockfrost-python";
    license = licenses.asl20;
    maintainers = with maintainers; [ t4ccer ];
  };
}