2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Python deps
|
|
|
|
, requests
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blockfrost-python";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.6.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blockfrost";
|
|
|
|
repo = "blockfrost-python";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-mN26QXxizDR+o2V5C2MlqVEbRns1BTmwZdUnnHNcFzw=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|