1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pyusb, 7}: 8 9buildPythonPackage rec { 10 pname = "python-yubico"; 11 version = "1.3.3"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-2EZkJ6pZIqxdS36cZbaTEIQnz1N9ZT1oyyEsBxPo5vU="; 17 }; 18 19 propagatedBuildInputs = [ pyusb ]; 20 21 checkInputs = [ pytestCheckHook ]; 22 pythonImportsCheck = [ "yubico" ]; 23 24 disabledTests = [ 25 "usb" # requires a physical yubikey to test 26 ]; 27 28 meta = with lib; { 29 description = "Python code to talk to YubiKeys"; 30 homepage = "https://github.com/Yubico/python-yubico"; 31 license = licenses.bsd2; 32 maintainers = with maintainers; [ s1341 ]; 33 }; 34}