python311Packages.consonance: refactor

This commit is contained in:
Moraxyc 2024-11-09 14:12:25 +08:00
parent c76f00a4ef
commit ab7489d373
No known key found for this signature in database

View File

@ -3,6 +3,7 @@
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
dissononce,
python-axolotl-curve25519,
transitions,
@ -14,14 +15,14 @@
buildPythonPackage rec {
pname = "consonance";
version = "0.1.5";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tgalal";
repo = "consonance";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-BhgxLxjKZ4dSL7DqkaoS+wBPCd1SYZomRKrtDLdGmYQ=";
};
@ -40,7 +41,9 @@ buildPythonPackage rec {
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
dissononce
python-axolotl-curve25519
transitions
@ -53,10 +56,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "consonance" ];
meta = with lib; {
meta = {
description = "WhatsApp's handshake implementation using Noise Protocol";
homepage = "https://github.com/tgalal/consonance";
license = licenses.gpl3Plus;
license = lib.licenses.gpl3Plus;
maintainers = [ ];
};
}