1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 pytestCheckHook, 7 pyusb, 8}: 9 10buildPythonPackage rec { 11 pname = "python-yubico"; 12 version = "1.3.3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "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}