2018-08-05 21:29:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python2Packages, openssl }:
|
2016-01-05 22:29:11 +00:00
|
|
|
|
2018-08-05 21:29:57 +01:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2018-08-05 21:32:32 +01:00
|
|
|
pname = "pybitmessage";
|
2016-01-05 22:29:11 +00:00
|
|
|
|
2018-08-05 16:21:31 +01:00
|
|
|
version = "0.6.3.2";
|
2016-01-05 22:29:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitmessage";
|
|
|
|
repo = "PyBitmessage";
|
2018-08-05 16:21:31 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1lmhbpwsqh1v93krlqqhafw2pc3y0qp8zby186yllbph6s8kdp35";
|
2016-01-05 22:29:11 +00:00
|
|
|
};
|
|
|
|
|
2019-09-29 09:43:45 +01:00
|
|
|
propagatedBuildInputs = with python2Packages; [ msgpack pyqt4 numpy pyopencl setuptools ] ++ [ openssl ];
|
2016-01-05 22:29:11 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-06-16 07:03:05 +01: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 09:43:45 +01:00
|
|
|
--replace ' "You may be missing a C++ compiler and the OpenSSL headers."' pass \
|
|
|
|
--replace 'msgpack-python' 'msgpack'
|
2016-01-05 22:29:11 +00:00
|
|
|
|
2017-09-01 13:43:27 +01: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 22:29:11 +00:00
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://bitmessage.org/;
|
|
|
|
description = "The official Bitmessage client";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jgillich ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; linux;
|
2016-01-05 22:29:11 +00:00
|
|
|
};
|
|
|
|
}
|