at master 745 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 hatchling, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "otpauth"; 12 version = "2.2.1"; 13 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Fpp629cV/KaH9qZtAszb78Ip+0n4pjS5WNKG+QgTTVk="; 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}