mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
949 B
Nix
52 lines
949 B
Nix
{ 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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; [ ];
|
|
};
|
|
}
|