1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "oath";
9 version = "1.4.4";
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-vWsg0g8sTj9TUj7pACEdynWu7KcvT1qf2NyswXX+HAs=";
15 };
16 nativeCheckInputs = [
17 pytestCheckHook
18 ];
19
20 pythonImportsCheck = [
21 "oath"
22 ];
23
24 meta = with lib; {
25 description = "Python implementation of the three main OATH specifications: HOTP, TOTP and OCRA";
26 homepage = "https://github.com/bdauvergne/python-oath";
27 license = licenses.bsd3;
28 maintainers = with maintainers; [ aw ];
29 };
30}