depot/third_party/nixpkgs/pkgs/development/python-modules/spake2/default.nix

39 lines
856 B
Nix
Raw Normal View History

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