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