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