Files
nixpkgs/pkgs/development/python-modules/otpauth/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
743 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
hatchling,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "otpauth";
version = "2.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Fpp629cV/KaH9qZtAszb78Ip+0n4pjS5WNKG+QgTTVk=";
};
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "otpauth" ];
meta = {
description = "Implements one time password of HOTP/TOTP";
homepage = "https://otp.authlib.org/";
changelog = "https://github.com/authlib/otpauth/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ erictapen ];
};
}