567e8dfd8e
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>
28 lines
616 B
Nix
28 lines
616 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oath";
|
|
version = "1.4.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-vWsg0g8sTj9TUj7pACEdynWu7KcvT1qf2NyswXX+HAs=";
|
|
};
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "oath" ];
|
|
|
|
meta = {
|
|
description = "Python implementation of the three main OATH specifications: HOTP, TOTP and OCRA";
|
|
homepage = "https://github.com/bdauvergne/python-oath";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ aw ];
|
|
};
|
|
}
|