depot/third_party/nixpkgs/pkgs/development/python-modules/yubico/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

27 lines
677 B
Nix

{ stdenv, lib, buildPythonPackage, fetchPypi, pytestCheckHook, pyusb }:
buildPythonPackage rec {
pname = "python-yubico";
version = "1.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "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 ];
};
}