diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-01-31 12:54:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 12:54:03 +0100 |
commit | d86ee8db4b5cb927ef17074d03049e8e9edeaa61 (patch) | |
tree | be465cf3a072e47657c5c52870fce802b52127bf | |
parent | db77921d65385f6b38335a8f89bb2be7f1e2d8c9 (diff) | |
parent | 5bc42e957ce015f2bd36ed6d3def80216945d57e (diff) |
Merge pull request #213684 from wegank/bip-utils-pysha3
python311Packages.bip_utils: fix build
-rw-r--r-- | pkgs/development/python-modules/bip_utils/default.nix | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/bip_utils/default.nix b/pkgs/development/python-modules/bip_utils/default.nix index ec351457a2229..16786b2e0189e 100644 --- a/pkgs/development/python-modules/bip_utils/default.nix +++ b/pkgs/development/python-modules/bip_utils/default.nix @@ -3,7 +3,6 @@ , fetchFromGitHub , pythonOlder , ecdsa -, pysha3 , coincurve , pynacl , crcmod @@ -14,21 +13,26 @@ }: buildPythonPackage rec { - pname = "bip_utils"; + pname = "bip-utils"; version = "2.7.0"; + format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "ebellocchia"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-m7/CC5/T6qR2Ot4y5WQlzOAR0czz6XHCjJskES+2nns="; + repo = "bip_utils"; + rev = "refs/tags/v${version}"; + hash = "sha256-m7/CC5/T6qR2Ot4y5WQlzOAR0czz6XHCjJskES+2nns="; }; + postPatch = '' + substituteInPlace requirements.txt \ + --replace "coincurve>=15.0.1,<18.0.0" "coincurve" + ''; + propagatedBuildInputs = [ ecdsa - pysha3 cbor2 pynacl coincurve @@ -42,10 +46,11 @@ buildPythonPackage rec { "bip_utils" ]; - meta = { + meta = with lib; { description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation"; homepage = "https://github.com/ebellocchia/bip_utils"; - license = with lib.licenses; [ mit ]; - maintainers = with lib.maintainers; [ prusnak stargate01 ]; + changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ prusnak stargate01 ]; }; } |