Files
nixpkgs/pkgs/development/python-modules/blockfrost-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1023 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# Python deps
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "blockfrost-python";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "blockfrost";
repo = "blockfrost-python";
tag = version;
hash = "sha256-mN26QXxizDR+o2V5C2MlqVEbRns1BTmwZdUnnHNcFzw=";
};
patches = [
(fetchpatch2 {
name = "blockfrost-python-fix-version";
url = "https://github.com/blockfrost/blockfrost-python/commit/02fdc67ff6d1333c0855e740114585852bbfa0bc.patch?full_index=1";
hash = "sha256-070tnWxOnVNsCYXmBFo39JUgQDqphdpqx3A9OIuC94U=";
})
];
build-system = [
setuptools
];
dependencies = [
requests
];
pythonImportsCheck = [ "blockfrost" ];
meta = {
description = "Python SDK for the Blockfrost.io API";
homepage = "https://github.com/blockfrost/blockfrost-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aciceri ];
};
}