Commit 59fe36a1 authored by Alexander's avatar Alexander Committed by Valentin Gagarin
Browse files

python312Packages.doubleratchet: init at 1.1.0

parent b36f098c
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  cryptography,
  pydantic,
  typing-extensions,
  pytestCheckHook,
  pytest-asyncio,
}:

buildPythonPackage rec {
  pname = "doubleratchet";
  version = "1.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Syndace";
    repo = "python-doubleratchet";
    tag = "v${version}";
    hash = "sha256-yoph3u7LjGjSPi1hFlXzWmSNkCXvY/ocTt2MKa+F1fs=";
  };

  strictDeps = true;

  build-system = [
    setuptools
  ];

  dependencies = [
    cryptography
    pydantic
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [ "doubleratchet" ];

  meta = {
    description = "Python implementation of the Double Ratchet algorithm";
    homepage = "https://github.com/Syndace/python-doubleratchet";
    changelog = "https://github.com/Syndace/python-doubleratchet/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    teams = with lib.teams; [ ngi ];
    maintainers = with lib.maintainers; [ axler1 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4129,6 +4129,8 @@ self: super: with self; {
  dotwiz = callPackage ../development/python-modules/dotwiz { };
  doubleratchet = callPackage ../development/python-modules/doubleratchet { };
  downloader-cli = callPackage ../development/python-modules/downloader-cli { };
  dparse = callPackage ../development/python-modules/dparse { };