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