1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, six 5, mock 6, pyfakefs 7, pytest-forked 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "pyu2f"; 13 version = "0.1.5a"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "google"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v"; 21 }; 22 23 propagatedBuildInputs = [ 24 six 25 ]; 26 27 nativeCheckInputs = [ 28 mock 29 pyfakefs 30 pytest-forked 31 pytestCheckHook 32 ]; 33 34 disabledTestPaths = [ 35 # API breakage with pyfakefs>=5.0 36 "pyu2f/tests/hid/linux_test.py" 37 ]; 38 39 meta = with lib; { 40 description = "U2F host library for interacting with a U2F device over USB"; 41 homepage = "https://github.com/google/pyu2f"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ prusnak ]; 44 }; 45}