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