mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
0215034f25
when they already rely on SRI hashes.
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
{ stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bitcoinlib";
|
|
version = "0.12.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "petertodd";
|
|
repo = "python-bitcoinlib";
|
|
rev = "refs/tags/python-bitcoinlib-v${version}";
|
|
hash = "sha256-jguybrH86z6NWLaucQEYjvH2Gkoh3Aqh/PLZ6l8Qel4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace bitcoin/core/key.py --replace \
|
|
"ctypes.util.find_library('ssl.35') or ctypes.util.find_library('ssl') or 'libeay32'" \
|
|
"'${lib.getLib openssl}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "bitcoin" "bitcoin.core.key" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/petertodd/python-bitcoinlib";
|
|
description = "Easy interface to the Bitcoin data structures and protocol";
|
|
changelog = "https://github.com/petertodd/python-bitcoinlib/raw/${src.rev}/release-notes.md";
|
|
license = with licenses; [ lgpl3Plus ];
|
|
maintainers = with maintainers; [ jb55 ];
|
|
};
|
|
}
|