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.14.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-vBFCRXwZ91C48GuOet2Obbo7gM02M2c9+7rhp0l6w54="; 17 }; 18 19 propagatedBuildInputs = [ 20 oath 21 pycryptodome 22 requests 23 ]; 24 25 nativeCheckInputs = [ 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}