12 buildPythonPackage rec {
15 format = "setuptools";
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v";
24 propagatedBuildInputs = [ six ];
28 customauthenticator_test.py \
30 hidtransport_test.py \
31 localauthenticator_test.py \
37 # https://docs.python.org/3/whatsnew/3.12.html#id3
38 substituteInPlace pyu2f/tests/$path \
39 --replace "assertEquals" "assertEqual" \
40 --replace "assertRaisesRegexp" "assertRaisesRegex"
52 # API breakage with pyfakefs>=5.0
53 "pyu2f/tests/hid/linux_test.py"
57 description = "U2F host library for interacting with a U2F device over USB";
58 homepage = "https://github.com/google/pyu2f";
59 license = licenses.asl20;
60 maintainers = with maintainers; [ prusnak ];