1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, lxml
5, oath
6, pycryptodome
7, requests
8, pytest
9}:
10
11buildPythonPackage rec {
12 pname = "python-vipaccess";
13 version = "0.10.3";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "1m6b7qipiaj6pz86kjhyq5m5jxxijpk58gpsdkj5bn0wjl6x1pg2";
18 };
19
20 propagatedBuildInputs = [
21 lxml
22 oath
23 pycryptodome
24 requests
25 ];
26
27 checkInputs = [ 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 stdenv.lib; {
37 description = "A free software implementation of Symantec's VIP Access application and protocol";
38 homepage = "https://github.com/dlenski/python-vipaccess";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ aw ];
41 };
42}