diff options
Diffstat (limited to 'pkgs/development/python-modules/python-etherscan-api/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/python-etherscan-api/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-etherscan-api/default.nix b/pkgs/development/python-modules/python-etherscan-api/default.nix new file mode 100644 index 000000000000..d9df87de0a33 --- /dev/null +++ b/pkgs/development/python-modules/python-etherscan-api/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + setuptools, +}: + +buildPythonPackage rec { + pname = "python-etherscan-api"; + version = "2.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "pcko1"; + repo = "etherscan-python"; + tag = version; + hash = "sha256-HnMhWUKwVQq5RMXwSZo9q20JEnl7YN13ju01L18YAzU="; + }; + + build-system = [ setuptools ]; + + dependencies = [ requests ]; + + # Tests require an API key + doCheck = false; + + pythonImportsCheck = [ "etherscan" ]; + + meta = { + description = "A minimal, yet complete, python API for etherscan.io"; + homepage = "https://github.com/pcko1/etherscan-python"; + changelog = "https://github.com/pcko1/etherscan-python/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} |
