Files
nixpkgs/pkgs/development/python-modules/x3dh/default.nix
2025-05-07 13:04:45 -05:00

54 lines
1.0 KiB
Nix

{
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; [ ];
};
}