Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 822 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, poetry-core 5, six 6, cryptography 7, mock 8, pyfakefs 9, unittestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "fido2"; 14 version = "1.1.1"; 15 format = "pyproject"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-XcSVyoxZwcM3ODtLjDFNRrktXG/GUOcZhMbX+VQHn8M="; 20 }; 21 22 nativeBuildInputs = [ poetry-core ]; 23 24 propagatedBuildInputs = [ six cryptography ]; 25 26 nativeCheckInputs = [ unittestCheckHook mock pyfakefs ]; 27 28 unittestFlagsArray = [ "-v" ]; 29 30 pythonImportsCheck = [ "fido2" ]; 31 32 meta = with lib; { 33 description = "Provides library functionality for FIDO 2.0, including communication with a device over USB."; 34 homepage = "https://github.com/Yubico/python-fido2"; 35 license = licenses.bsd2; 36 maintainers = with maintainers; [ prusnak ]; 37 }; 38}