1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 oath,
6 pycryptodome,
7 requests,
8 pytest,
9}:
10
11buildPythonPackage rec {
12 pname = "python-vipaccess";
13 version = "0.14.2";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-TFSX8iL6ChaL3Fj+0VCHzafF/314Y/i0aTI809Qk5hU=";
19 };
20
21 propagatedBuildInputs = [
22 oath
23 pycryptodome
24 requests
25 ];
26
27 nativeCheckInputs = [ pytest ];
28 # test_check_token_detects_valid_hotp_token,
29 # test_check_token_detects_valid_totp_token and
30 # test_check_token_detects_invlaid_token require network
31 checkPhase = ''
32 mv vipaccess vipaccess.hidden
33 pytest tests/ -k 'not test_check_token'
34 '';
35
36 meta = with lib; {
37 description = "Free software implementation of Symantec's VIP Access application and protocol";
38 mainProgram = "vipaccess";
39 homepage = "https://github.com/dlenski/python-vipaccess";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ aw ];
42 };
43}