python3Packages.consonance: init at 0.1.3

This commit is contained in:
Maximilian Bosch 2019-12-05 20:56:58 +01:00
parent d170246aae
commit d8d34797d7
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ buildPythonPackage, lib, fetchFromGitHub, pytest, dissononce, python-axolotl-curve25519
, transitions, protobuf, nose
}:
buildPythonPackage rec {
pname = "consonance";
version = "0.1.3";
src = fetchFromGitHub {
owner = "tgalal";
repo = "consonance";
rev = version;
sha256 = "1ifs0fq6i41rdna1kszv5sf87qbqx1mn98ffyx4xhw4i9r2grrjv";
};
checkInputs = [ nose ];
checkPhase = ''
# skipping online test as it requires network with uplink
nosetests tests/test_handshakes_offline.py
'';
propagatedBuildInputs = [ dissononce python-axolotl-curve25519 transitions protobuf ];
meta = with lib; {
homepage = "https://pypi.org/project/consonance/";
license = licenses.gpl3;
description = "WhatsApp's handshake implementation using Noise Protocol";
};
}

View file

@ -1718,6 +1718,8 @@ in {
configshell = callPackage ../development/python-modules/configshell { };
consonance = callPackage ../development/python-modules/consonance { };
constantly = callPackage ../development/python-modules/constantly { };
cornice = callPackage ../development/python-modules/cornice { };