3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix
Francesco Gazzetta 3bddc85171 pybitmessage: specify python version 2
pybitmessage does not support python3 yet
2018-08-05 22:29:57 +02:00

40 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, python2Packages, openssl }:
python2Packages.buildPythonApplication rec {
name = "pybitmessage-${version}";
version = "0.6.3.2";
src = fetchFromGitHub {
owner = "bitmessage";
repo = "PyBitmessage";
rev = version;
sha256 = "1lmhbpwsqh1v93krlqqhafw2pc3y0qp8zby186yllbph6s8kdp35";
};
propagatedBuildInputs = with python2Packages; [ msgpack-python pyqt4 numpy pyopencl ] ++ [ openssl ];
preConfigure = ''
# Remove interaction and misleading output
substituteInPlace setup.py \
--replace "nothing = raw_input()" pass \
--replace 'print "It looks like building the package failed.\n" \' pass \
--replace ' "You may be missing a C++ compiler and the OpenSSL headers."' pass
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'"
'';
meta = with stdenv.lib; {
homepage = https://bitmessage.org/;
description = "The official Bitmessage client";
license = licenses.mit;
maintainers = with maintainers; [ jgillich ];
platforms = with platforms; linux;
};
}