1 { stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }:
3 buildPythonPackage rec {
9 src = fetchFromGitHub {
11 repo = "python-bitcoinlib";
12 rev = "refs/tags/python-bitcoinlib-v${version}";
13 hash = "sha256-jfd2Buy6GSCH0ZeccRREC1NmlS6Mq1qtNv/NLNJOsX0=";
17 substituteInPlace bitcoin/core/key.py --replace \
18 "ctypes.util.find_library('ssl.35') or ctypes.util.find_library('ssl') or ctypes.util.find_library('libeay32')" \
19 "'${lib.getLib openssl}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}'"
22 pythonImportsCheck = [ "bitcoin" "bitcoin.core.key" ];
25 homepage = "https://github.com/petertodd/python-bitcoinlib";
26 description = "Easy interface to the Bitcoin data structures and protocol";
27 changelog = "https://github.com/petertodd/python-bitcoinlib/raw/${src.rev}/release-notes.md";
28 license = with licenses; [ lgpl3Plus ];
29 maintainers = with maintainers; [ jb55 ];