2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, eth-abi
|
|
|
|
, py-ecc
|
|
|
|
, pycryptodome
|
|
|
|
, python
|
|
|
|
, rlp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-eth-sig-utils";
|
|
|
|
version = "0.4.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rmeissner";
|
|
|
|
repo = "py-eth-sig-utils";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-PNvEHH5w2ptntRGzqWrqlbIzJJsT60OXg/Dh5f6Wq9k=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
eth-abi
|
|
|
|
py-ecc
|
|
|
|
pycryptodome
|
|
|
|
rlp
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
# lots of: isinstance() arg 2 must be a type or tuple of types
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "py_eth_sig_utils" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of functions to generate hashes for signing on Ethereum";
|
|
|
|
homepage = "https://github.com/rmeissner/py-eth-sig-utils";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-07-15 17:15:38 +00:00
|
|
|
# TODO: upstream is stale and doesn't not work with the new `eth-abi` package any more.
|
|
|
|
broken = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|