Unverified Commit ab7489d3 authored by Moraxyc's avatar Moraxyc
Browse files

python311Packages.consonance: refactor

parent c76f00a4
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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 = [ ];
  };
}