1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "python-etherscan-api"; 11 version = "2.1.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "pcko1"; 16 repo = "etherscan-python"; 17 tag = version; 18 hash = "sha256-HnMhWUKwVQq5RMXwSZo9q20JEnl7YN13ju01L18YAzU="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ requests ]; 24 25 # Tests require an API key 26 doCheck = false; 27 28 pythonImportsCheck = [ "etherscan" ]; 29 30 meta = { 31 description = "A minimal, yet complete, python API for etherscan.io"; 32 homepage = "https://github.com/pcko1/etherscan-python"; 33 changelog = "https://github.com/pcko1/etherscan-python/releases/tag/${version}"; 34 license = lib.licenses.mit; 35 maintainers = [ lib.maintainers.jamiemagee ]; 36 }; 37}