Unverified Commit afcacfdc authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

python312Packages.x3dh: init at 1.1.0 (#404210)

parents 2696d5ae 7ae41a1d
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  xeddsa,
  cryptography,
  pydantic,
  typing-extensions,
  pytestCheckHook,
  pytest-asyncio,
}:
buildPythonPackage rec {
  pname = "x3dh";
  version = "1.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Syndace";
    repo = "python-x3dh";
    tag = "v${version}";
    hash = "sha256-/hC1Kze4yBOlgbWJcGddcYty9fqwZ08Lyi0IiqSDibI=";
  };

  strictDeps = true;

  build-system = [
    setuptools
  ];

  dependencies = [
    xeddsa
    cryptography
    pydantic
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [ "x3dh" ];

  meta = {
    description = "Python Implementation of the Extended Triple Diffie-Hellman key Agreement Protocol";
    homepage = "https://github.com/Syndace/python-x3dh";
    changelog = "https://github.com/Syndace/python-x3dh/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    teams = with lib.teams; [ ngi ];
    maintainers = with lib.maintainers; [ ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -19106,6 +19106,8 @@ self: super: with self; {
  x256 = callPackage ../development/python-modules/x256 { };
  x3dh = callPackage ../development/python-modules/x3dh { };
  x690 = callPackage ../development/python-modules/x690 { };
  xapian = callPackage ../development/python-modules/xapian { inherit (pkgs) xapian; };