f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
33 lines
671 B
Nix
33 lines
671 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
pyusb,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-yubico";
|
|
version = "1.3.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2EZkJ6pZIqxdS36cZbaTEIQnz1N9ZT1oyyEsBxPo5vU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyusb ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
pythonImportsCheck = [ "yubico" ];
|
|
|
|
disabledTests = [
|
|
"usb" # requires a physical yubikey to test
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python code to talk to YubiKeys";
|
|
homepage = "https://github.com/Yubico/python-yubico";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ s1341 ];
|
|
};
|
|
}
|