1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch2, 6 # Python deps 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "blockfrost-python"; 13 version = "0.6.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "blockfrost"; 18 repo = "blockfrost-python"; 19 tag = version; 20 hash = "sha256-mN26QXxizDR+o2V5C2MlqVEbRns1BTmwZdUnnHNcFzw="; 21 }; 22 23 patches = [ 24 (fetchpatch2 { 25 name = "blockfrost-python-fix-version"; 26 url = "https://github.com/blockfrost/blockfrost-python/commit/02fdc67ff6d1333c0855e740114585852bbfa0bc.patch?full_index=1"; 27 hash = "sha256-070tnWxOnVNsCYXmBFo39JUgQDqphdpqx3A9OIuC94U="; 28 }) 29 ]; 30 31 build-system = [ 32 setuptools 33 ]; 34 35 dependencies = [ 36 requests 37 ]; 38 39 pythonImportsCheck = [ "blockfrost" ]; 40 41 meta = with lib; { 42 description = "Python SDK for the Blockfrost.io API"; 43 homepage = "https://github.com/blockfrost/blockfrost-python"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ aciceri ]; 46 }; 47}