1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 hatchling, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "otpauth"; 12 version = "2.2.0"; 13 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Ev2uZNBmT/v6/a39weyP5XGs0OcaYveSM9072giNOcI="; 21 }; 22 23 build-system = [ hatchling ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "otpauth" ]; 28 29 meta = with lib; { 30 description = "Implements one time password of HOTP/TOTP"; 31 homepage = "https://otp.authlib.org/"; 32 changelog = "https://github.com/authlib/otpauth/releases/tag/v${version}"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ erictapen ]; 35 }; 36}