depot/third_party/nixpkgs/pkgs/development/python-modules/webauthn/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

53 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, asn1crypto
, cbor2
, pythonOlder
, pydantic
, pyopenssl
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "webauthn";
version = "1.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "duo-labs";
repo = "py_webauthn";
rev = "refs/tags/v${version}";
hash = "sha256-Ts0zKnQg1EaBNB9xQmzOpEVwDSFwHNjIhEP1jTwEOFI=";
};
propagatedBuildInputs = [
asn1crypto
cbor2
pydantic
pyopenssl
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"webauthn"
];
disabledTests = [
# TypeError: X509StoreContextError.__init__() missing 1 required...
"test_throws_on_bad_root_cert"
];
meta = with lib; {
description = "Implementation of the WebAuthn API";
homepage = "https://github.com/duo-labs/py_webauthn";
changelog = "https://github.com/duo-labs/py_webauthn/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}