2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, eth-hash, eth-typing,
|
2020-04-24 23:36:52 +00:00
|
|
|
cytoolz, hypothesis }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eth-utils";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "1.10.0";
|
2020-04-24 23:36:52 +00: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-04-26 19:14:03 +00:00
|
|
|
sha256 = "sha256-sq3H4HmUFUipqVYleZxWLG1gBsQEoNwcZAXiKckacek=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkInputs = [ pytestCheckHook hypothesis ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ eth-hash eth-typing cytoolz ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
pythonImportsCheck = [ "eth_utils" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Common utility functions for codebases which interact with ethereum";
|
|
|
|
homepage = "https://github.com/ethereum/eth-utils";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|