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