From 38e86a8f1e7d58ba494a83242ccd580e890741a6 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Sun, 26 Aug 2018 15:15:27 +0300 Subject: [PATCH] pythonPackages.python-u2flib-host: init at 3.0.3 --- .../python-u2flib-host/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/python-u2flib-host/default.nix diff --git a/pkgs/development/python-modules/python-u2flib-host/default.nix b/pkgs/development/python-modules/python-u2flib-host/default.nix new file mode 100644 index 000000000000..38785d813138 --- /dev/null +++ b/pkgs/development/python-modules/python-u2flib-host/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchPypi, buildPythonPackage, requests, hidapi }: + +buildPythonPackage rec { + pname = "python-u2flib-host"; + version = "3.0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb"; + }; + + propagatedBuildInputs = [ requests hidapi ]; + + # Tests fail: "ValueError: underlying buffer has been detached" + doCheck = false; + + meta = with stdenv.lib; { + description = "Python based U2F host library"; + homepage = https://github.com/Yubico/python-u2flib-host; + license = licenses.bsd2; + maintainers = with maintainers; [ jluttine ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e74d264d6028..db8d8fc463cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16244,6 +16244,8 @@ EOF potr = callPackage ../development/python-modules/potr {}; + python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { }; + pluggy = callPackage ../development/python-modules/pluggy {}; xcffib = callPackage ../development/python-modules/xcffib {};