My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/consonance/default.nix

51 lines
943 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, dissononce
, python-axolotl-curve25519
, transitions
, protobuf
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "consonance";
version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tgalal";
repo = "consonance";
rev = version;
hash = "sha256-BhgxLxjKZ4dSL7DqkaoS+wBPCd1SYZomRKrtDLdGmYQ=";
};
propagatedBuildInputs = [
dissononce
python-axolotl-curve25519
transitions
protobuf
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests/test_handshakes_offline.py"
];
pythonImportsCheck = [
"consonance"
];
meta = with lib; {
description = "WhatsApp's handshake implementation using Noise Protocol";
homepage = "https://github.com/tgalal/consonance";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}