2016-08-14 11:37:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages, openssl }:
|
2016-01-05 22:29:11 +00:00
|
|
|
|
2017-06-16 07:03:05 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-01-05 22:29:11 +00:00
|
|
|
name = "pybitmessage-${version}";
|
|
|
|
|
2017-06-16 07:03:05 +01:00
|
|
|
version = "0.6.2";
|
2016-01-05 22:29:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitmessage";
|
|
|
|
repo = "PyBitmessage";
|
|
|
|
rev = "v${version}";
|
2017-06-16 07:03:05 +01:00
|
|
|
sha256 = "04sgns9qczzw2152gqdr6bjyy4fmgs26cz8n3qck94l0j51rxhz8";
|
2016-01-05 22:29:11 +00:00
|
|
|
};
|
|
|
|
|
2017-06-16 07:03:05 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ msgpack pyqt4 ] ++ [ 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 \
|
|
|
|
--replace ' "You may be missing a C++ compiler and the OpenSSL headers."' pass
|
2016-01-05 22:29:11 +00:00
|
|
|
|
2017-06-16 07:03:05 +01:00
|
|
|
'';
|
2016-01-05 22:29:11 +00:00
|
|
|
|
2017-06-16 07:03:05 +01:00
|
|
|
makeWrapperArgs = ''
|
|
|
|
--prefix LD_LIBRARY_PATH : "${openssl.out}/lib/"
|
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
|
|
|
};
|
|
|
|
}
|