Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-2EZkJ6pZIqxdS36cZbaTEIQnz1N9ZT1oyyEsBxPo5vU="; 16 }; 17 18 propagatedBuildInputs = [ pyusb ]; 19 20 checkInputs = [ pytestCheckHook ]; 21 pythonImportsCheck = [ "yubico" ]; 22 23 disabledTests = [ 24 "usb" # requires a physical yubikey to test 25 ]; 26 27 meta = with lib; { 28 description = "Python code to talk to YubiKeys"; 29 homepage = "https://github.com/Yubico/python-yubico"; 30 license = licenses.bsd2; 31 maintainers = with maintainers; [ s1341 ]; 32 }; 33}