python3Packages.yubico-client: modernize

This commit is contained in:
Harinn
2026-06-13 04:03:21 +07:00
parent 891b8d9d2e
commit 9b07f7bd57
@@ -6,14 +6,16 @@
requests,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "yubico-client";
version = "1.13.0";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
sha256 = "e3b86cd2a123105edfacad40551c7b26e9c1193d81ffe168ee704ebfd3d11162";
inherit (finalAttrs) pname version;
hash = "sha256-47hs0qEjEF7frK1AVRx7JunBGT2B/+Fo7nBOv9PREWI=";
};
build-system = [ setuptools ];
@@ -23,9 +25,11 @@ buildPythonPackage rec {
# pypi package missing test_utils and github releases is behind
doCheck = false;
pythonImportsCheck = [ "yubico_client" ];
meta = {
description = "Verifying Yubico OTPs based on the validation protocol version 2.0";
homepage = "https://github.com/Kami/python-yubico-client/";
license = lib.licenses.bsd3;
};
}
})