about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/yubico/default.nix
blob: 441b313be40693215b825598ce7ee2196c9ba8b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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 ];
  };
}