2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
oath,
|
|
|
|
pycryptodome,
|
|
|
|
requests,
|
|
|
|
pytest,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-vipaccess";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.14.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-TFSX8iL6ChaL3Fj+0VCHzafF/314Y/i0aTI809Qk5hU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
oath
|
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# test_check_token_detects_valid_hotp_token,
|
|
|
|
# test_check_token_detects_valid_totp_token and
|
|
|
|
# test_check_token_detects_invlaid_token require network
|
|
|
|
checkPhase = ''
|
|
|
|
mv vipaccess vipaccess.hidden
|
|
|
|
pytest tests/ -k 'not test_check_token'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Free software implementation of Symantec's VIP Access application and protocol";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "vipaccess";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dlenski/python-vipaccess";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ aw ];
|
|
|
|
};
|
|
|
|
}
|