2021-01-25 10:06:27 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, eth-hash, eth-typing,
|
2018-08-26 12:12:06 +01:00
|
|
|
cytoolz, hypothesis }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eth-utils";
|
2021-01-25 10:06:27 +00:00
|
|
|
version = "1.9.5";
|
2018-08-26 12:12:06 +01:00
|
|
|
|
|
|
|
# Tests are missing from the PyPI source tarball so let's use GitHub
|
|
|
|
# https://github.com/ethereum/eth-utils/issues/130
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethereum";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-25 10:06:27 +00:00
|
|
|
sha256 = "1h3xlw74zdf6cfvqf9193lx05bpdm05pmy9ap1g7q2kx0j2b6352";
|
2018-08-26 12:12:06 +01:00
|
|
|
};
|
|
|
|
|
2021-01-25 10:06:27 +00:00
|
|
|
checkInputs = [ pytestCheckHook hypothesis ];
|
2018-08-26 12:12:06 +01:00
|
|
|
propagatedBuildInputs = [ eth-hash eth-typing cytoolz ];
|
|
|
|
|
2021-01-25 10:06:27 +00:00
|
|
|
pythonImportsCheck = [ "eth_utils" ];
|
2018-08-26 12:12:06 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Common utility functions for codebases which interact with ethereum";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ethereum/eth-utils";
|
2018-08-26 12:12:06 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|