depot/third_party/nixpkgs/pkgs/development/python-modules/spake2/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

38 lines
856 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
cryptography,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spake2";
version = "0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "warner";
repo = "python-spake2";
rev = "refs/tags/v${version}";
hash = "sha256-WPMGH1OzG+5O+2lNl2sv06/dNardY+BHYDS290Z36vQ=";
};
build-system = [ setuptools ];
dependencies = [ cryptography ];
pythonImportsCheck = [ "spake2" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/warner/python-spake2/blob/v${version}/NEWS";
description = "SPAKE2 password-authenticated key exchange library";
homepage = "https://github.com/warner/python-spake2";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}