Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 60 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
# propagates, cryptography, six
# optional, webob
# tests, pytestCheckHook}:
buildPythonPackage rec { pname = "python-u2flib-server"; version = "5.0.1"; format = "setuptools";
src = fetchFromGitHub { owner = "Yubico"; repo = "python-u2flib-server"; rev = version; hash = "sha256-ginP9u+aHcdaWpwcFYJWu0Ghf7+nDZq9i3TVAacIPhg="; };
patches = [ ./cryptography-37-compat.patch ];
propagatedBuildInputs = [ cryptography six ];
passthru.optional-dependencies = { u2f_server = [ webob ]; };
pythonImportsCheck = [ "u2flib_server" "u2flib_server.u2f" ];
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.u2f_server;
meta = with lib; { description = "Python based U2F server library"; homepage = "https://github.com/Yubico/python-u2flib-server"; changelog = "https://github.com/Yubico/python-u2flib-server/blob/${src.rev}/NEWS"; license = licenses.bsd2; maintainers = with maintainers; [ hexa ]; };}