blob: f1c14c0c62bbd8f0a3e4f9d74e97122aab445eac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
six,
timecop,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "onetimepass";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tadeck";
repo = "onetimepass";
tag = "v${version}";
hash = "sha256-cHJg3vdUpWp5+HACIeTGrqkHKUDS//aQICSjPKgwu3I=";
};
build-system = [ setuptools ];
dependencies = [ six ];
nativeCheckInputs = [
timecop
unittestCheckHook
];
pythonImportsCheck = [ "onetimepass" ];
meta = {
description = "One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords";
homepage = "https://github.com/tadeck/onetimepass";
changelog = "https://github.com/tadeck/onetimepass/releases/tag/v${version}";
license = lib.licenses.mit;
};
}
|