Merge pull request #190394 from r-ryantm/auto-update/python310Packages.bitcoinlib

python310Packages.bitcoinlib: 0.11.0 -> 0.11.2
This commit is contained in:
Mario Rodas 2022-09-08 19:05:08 -05:00 committed by GitHub
commit 9b7d89f65c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,31 @@
{ stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }: { stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }:
let ext = if stdenv.isDarwin then "dylib" else "so"; buildPythonPackage rec {
in buildPythonPackage rec {
pname = "bitcoinlib"; pname = "bitcoinlib";
version = "0.11.0"; version = "0.11.2";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "petertodd"; owner = "petertodd";
repo = "python-bitcoinlib"; repo = "python-bitcoinlib";
rev = "python-${pname}-v${version}"; rev = "refs/tags/python-bitcoinlib-v${version}";
sha256 = "0pwypd966zzivb37fvg4l6yr7ihplqnr1jwz9zm3biip7x89bdzm"; sha256 = "sha256-/VgCTN010W/Svdrs0mGA8W1YZnyTHhcaWJKgP/c8CN8=";
}; };
postPatch = '' postPatch = ''
substituteInPlace bitcoin/core/key.py --replace \ substituteInPlace bitcoin/core/key.py --replace \
"ctypes.util.find_library('ssl') or 'libeay32'" \ "ctypes.util.find_library('ssl') or 'libeay32'" \
"'${lib.getLib openssl}/lib/libssl.${ext}'" "'${lib.getLib openssl}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}'"
''; '';
meta = { pythonImportsCheck = [ "bitcoin" "bitcoin.core.key" ];
homepage = src.meta.homepage;
meta = with lib; {
homepage = "https://github.com/petertodd/python-bitcoinlib";
description = "Easy interface to the Bitcoin data structures and protocol"; description = "Easy interface to the Bitcoin data structures and protocol";
license = with lib.licenses; [ lgpl3 ]; changelog = "https://github.com/petertodd/python-bitcoinlib/raw/${src.rev}/release-notes.md";
maintainers = with lib.maintainers; [ jb55 ]; license = with licenses; [ lgpl3Plus ];
maintainers = with maintainers; [ jb55 ];
}; };
} }