python3Packages.consonance: 0.1.3 -> 0.1.5

This commit is contained in:
Fabian Affolter 2022-01-15 09:58:01 +01:00
parent fd5df0ef5b
commit 0c0b0905e7

View File

@ -1,29 +1,51 @@
{ buildPythonPackage, lib, fetchFromGitHub, dissononce, python-axolotl-curve25519
, transitions, protobuf, nose
{ lib
, buildPythonPackage
, fetchFromGitHub
, dissononce
, python-axolotl-curve25519
, transitions
, protobuf
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "consonance";
version = "0.1.3";
version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tgalal";
repo = "consonance";
rev = version;
sha256 = "1ifs0fq6i41rdna1kszv5sf87qbqx1mn98ffyx4xhw4i9r2grrjv";
hash = "sha256-BhgxLxjKZ4dSL7DqkaoS+wBPCd1SYZomRKrtDLdGmYQ=";
};
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
];
propagatedBuildInputs = [ dissononce python-axolotl-curve25519 transitions protobuf ];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests/test_handshakes_offline.py"
];
pythonImportsCheck = [
"consonance"
];
meta = with lib; {
homepage = "https://pypi.org/project/consonance/";
license = licenses.gpl3;
description = "WhatsApp's handshake implementation using Noise Protocol";
homepage = "https://github.com/tgalal/consonance";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}