summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-u2flib-host/default.nix
blob: 18b97e94e811c8f21e19c17e85c232ceaead66cf (plain)
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
28
29
30
31
32
33
{
  lib,
  fetchPypi,
  buildPythonPackage,
  requests,
  hidapi,
}:

buildPythonPackage rec {
  pname = "python-u2flib-host";
  version = "3.0.3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb";
  };

  propagatedBuildInputs = [
    requests
    hidapi
  ];

  # Tests fail: "ValueError: underlying buffer has been detached"
  doCheck = false;

  meta = {
    description = "Python based U2F host library";
    homepage = "https://github.com/Yubico/python-u2flib-host";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ jluttine ];
  };
}