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