2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchFromGitHub, python2Packages, openssl }:
|
2016-01-05 14:29:11 -08:00
|
|
|
|
2018-08-05 13:29:57 -07:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2018-08-05 13:32:32 -07:00
|
|
|
pname = "pybitmessage";
|
2016-01-05 14:29:11 -08:00
|
|
|
|
2018-08-05 08:21:31 -07:00
|
|
|
version = "0.6.3.2";
|
2016-01-05 14:29:11 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitmessage";
|
|
|
|
repo = "PyBitmessage";
|
2018-08-05 08:21:31 -07:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1lmhbpwsqh1v93krlqqhafw2pc3y0qp8zby186yllbph6s8kdp35";
|
2016-01-05 14:29:11 -08:00
|
|
|
};
|
|
|
|
|
2019-09-29 01:43:45 -07:00
|
|
|
propagatedBuildInputs = with python2Packages; [ msgpack pyqt4 numpy pyopencl setuptools ] ++ [ openssl ];
|
2016-01-05 14:29:11 -08:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-06-15 23:03:05 -07:00
|
|
|
# Remove interaction and misleading output
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "nothing = raw_input()" pass \
|
|
|
|
--replace 'print "It looks like building the package failed.\n" \' pass \
|
2019-09-29 01:43:45 -07:00
|
|
|
--replace ' "You may be missing a C++ compiler and the OpenSSL headers."' pass \
|
|
|
|
--replace 'msgpack-python' 'msgpack'
|
2016-01-05 14:29:11 -08:00
|
|
|
|
2017-09-01 05:43:27 -07:00
|
|
|
substituteInPlace src/pyelliptic/openssl.py \
|
|
|
|
--replace "libdir.append(find_library('ssl'))" "libdir.append('${openssl.out}/lib/libssl.so')"
|
|
|
|
|
|
|
|
substituteInPlace src/depends.py \
|
|
|
|
--replace "ctypes.util.find_library('ssl')" "'${openssl.out}/lib/libssl.so'"
|
2016-01-05 14:29:11 -08:00
|
|
|
|
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://bitmessage.org/";
|
2016-01-05 14:29:11 -08:00
|
|
|
description = "The official Bitmessage client";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jgillich ];
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = with platforms; linux;
|
2016-01-05 14:29:11 -08:00
|
|
|
};
|
|
|
|
}
|