2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-10-04 16:56:33 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchpatch2,
|
|
|
|
setuptools,
|
2024-10-04 16:56:33 +00:00
|
|
|
cryptography,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spake2";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.9";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warner";
|
|
|
|
repo = "python-spake2";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-WPMGH1OzG+5O+2lNl2sv06/dNardY+BHYDS290Z36vQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
dependencies = [ cryptography ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "spake2" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/warner/python-spake2/blob/v${version}/NEWS";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SPAKE2 password-authenticated key exchange library";
|
|
|
|
homepage = "https://github.com/warner/python-spake2";
|
|
|
|
license = licenses.mit;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|