Unverified Commit 76922ee8 authored by Miao, ZhiCheng's avatar Miao, ZhiCheng
Browse files

python311Packages.eth-account: 0.6.1 -> 0.9.0

parent 2ad0f0d0
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
, eth-keys
, eth-rlp
, eth-utils
, websockets
, hexbytes
, pythonOlder
, rlp
@@ -14,21 +15,16 @@

buildPythonPackage rec {
  pname = "eth-account";
  version = "0.6.1";
  version = "0.9.0";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "ethereum";
    repo = "eth-account";
    rev = "v${version}";
    hash = "sha256-cjQvTKC4lDbKnAvbmnTGHQiJZsZFhXc/+UH5rUdlGxs=";
    hash = "sha256-Ps/vzJv0W1+wy1mSJaqRNNU6CoCMchReHIocB9kPrGs=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "bitarray>=1.2.1,<1.3.0" "bitarray>=2.4.0,<3"
  '';

  propagatedBuildInputs = [
    bitarray
    eth-abi
@@ -38,6 +34,7 @@ buildPythonPackage rec {
    eth-utils
    hexbytes
    rlp
    websockets
  ];

  # require buildinga npm project