nixpkgs/pkgs/development/python-modules/webauthn/default.nix
Sandro 3770e4f913
python310Packages.webauthn: init at 1.5.2 (#175018)
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
2022-05-28 16:44:51 +02:00

44 lines
797 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, asn1crypto
, cbor2
, pythonOlder
, pydantic
, pyopenssl
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "webauthn";
version = "1.5.2";
disabled = pythonOlder "3";
src = fetchFromGitHub {
owner = "duo-labs";
repo = "py_webauthn";
rev = "v${version}";
sha256 = "sha256-sjl65vx1VthVX6ED3lXXAcn2D5WzzGAINKBjCc10rcs=";
};
propagatedBuildInputs = [
asn1crypto
cbor2
pydantic
pyopenssl
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "webauthn" ];
meta = with lib; {
homepage = "https://github.com/duo-labs/py_webauthn";
description = "Implementation of the WebAuthn API";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}