3
0
Fork 0
forked from mirrors/nixpkgs

python311Packages.bip_utils: fix build

This commit is contained in:
Weijia Wang 2023-01-31 11:29:33 +01:00
parent 518131bba8
commit 5bc42e957c

View file

@ -3,7 +3,6 @@
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, ecdsa , ecdsa
, pysha3
, coincurve , coincurve
, pynacl , pynacl
, crcmod , crcmod
@ -14,21 +13,26 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "bip_utils"; pname = "bip-utils";
version = "2.7.0"; version = "2.7.0";
format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ebellocchia"; owner = "ebellocchia";
repo = pname; repo = "bip_utils";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-m7/CC5/T6qR2Ot4y5WQlzOAR0czz6XHCjJskES+2nns="; hash = "sha256-m7/CC5/T6qR2Ot4y5WQlzOAR0czz6XHCjJskES+2nns=";
}; };
postPatch = ''
substituteInPlace requirements.txt \
--replace "coincurve>=15.0.1,<18.0.0" "coincurve"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
ecdsa ecdsa
pysha3
cbor2 cbor2
pynacl pynacl
coincurve coincurve
@ -42,10 +46,11 @@ buildPythonPackage rec {
"bip_utils" "bip_utils"
]; ];
meta = { meta = with lib; {
description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation"; description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation";
homepage = "https://github.com/ebellocchia/bip_utils"; homepage = "https://github.com/ebellocchia/bip_utils";
license = with lib.licenses; [ mit ]; changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md";
maintainers = with lib.maintainers; [ prusnak stargate01 ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ prusnak stargate01 ];
}; };
} }