nixpkgs/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

2016-08-14 11:37:20 +01:00
{ stdenv, fetchFromGitHub, pythonPackages, openssl }:
2016-01-05 22:29:11 +00:00
pythonPackages.buildPythonApplication rec {
2016-01-05 22:29:11 +00:00
name = "pybitmessage-${version}";
version = "0.6.2";
2016-01-05 22:29:11 +00:00
src = fetchFromGitHub {
owner = "bitmessage";
repo = "PyBitmessage";
rev = "v${version}";
sha256 = "04sgns9qczzw2152gqdr6bjyy4fmgs26cz8n3qck94l0j51rxhz8";
2016-01-05 22:29:11 +00:00
};
propagatedBuildInputs = with pythonPackages; [ msgpack pyqt4 ] ++ [ openssl ];
2016-01-05 22:29:11 +00:00
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
2016-01-05 22:29:11 +00:00
'';
2016-01-05 22:29:11 +00: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 ];
platforms = with platforms; linux;
2016-01-05 22:29:11 +00:00
};
}