1{ buildPythonPackage, lib, fetchFromGitHub, dissononce, python-axolotl-curve25519 2, transitions, protobuf, nose 3}: 4 5buildPythonPackage rec { 6 pname = "consonance"; 7 version = "0.1.3"; 8 9 src = fetchFromGitHub { 10 owner = "tgalal"; 11 repo = "consonance"; 12 rev = version; 13 sha256 = "1ifs0fq6i41rdna1kszv5sf87qbqx1mn98ffyx4xhw4i9r2grrjv"; 14 }; 15 16 checkInputs = [ nose ]; 17 checkPhase = '' 18 # skipping online test as it requires network with uplink 19 nosetests tests/test_handshakes_offline.py 20 ''; 21 22 propagatedBuildInputs = [ dissononce python-axolotl-curve25519 transitions protobuf ]; 23 24 meta = with lib; { 25 homepage = "https://pypi.org/project/consonance/"; 26 license = licenses.gpl3; 27 description = "WhatsApp's handshake implementation using Noise Protocol"; 28 }; 29}