1{ lib, fetchPypi, buildPythonPackage, requests, hidapi }:
2
3buildPythonPackage rec {
4 pname = "python-u2flib-host";
5 version = "3.0.3";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb";
10 };
11
12 propagatedBuildInputs = [ requests hidapi ];
13
14 # Tests fail: "ValueError: underlying buffer has been detached"
15 doCheck = false;
16
17 meta = with lib; {
18 description = "Python based U2F host library";
19 homepage = "https://github.com/Yubico/python-u2flib-host";
20 license = licenses.bsd2;
21 maintainers = with maintainers; [ jluttine ];
22 };
23}