2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyusb,
|
|
|
|
}:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-yubico";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.3.3";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-2EZkJ6pZIqxdS36cZbaTEIQnz1N9ZT1oyyEsBxPo5vU=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyusb ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "yubico" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"usb" # requires a physical yubikey to test
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python code to talk to YubiKeys";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/Yubico/python-yubico";
|
|
|
|
license = licenses.bsd2;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with maintainers; [ s1341 ];
|
|
|
|
};
|
|
|
|
}
|