nixpkgs-suyu/pkgs/development/python-modules/pyu2f/default.nix

32 lines
644 B
Nix
Raw Normal View History

2021-04-27 19:37:05 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, mock
, pyfakefs
, pytestCheckHook
2018-12-20 21:27:47 +01:00
}:
buildPythonPackage rec {
pname = "pyu2f";
2021-04-27 19:37:05 +02:00
version = "0.1.5a";
2018-12-20 21:27:47 +01:00
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = version;
2021-04-27 19:37:05 +02:00
sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v";
2018-12-20 21:27:47 +01:00
};
propagatedBuildInputs = [ six ];
2021-04-27 19:37:05 +02:00
checkInputs = [ mock pyfakefs pytestCheckHook ];
2018-12-20 21:27:47 +01:00
meta = with lib; {
description = "U2F host library for interacting with a U2F device over USB";
2021-04-27 19:37:05 +02:00
homepage = "https://github.com/google/pyu2f";
2018-12-20 21:27:47 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ prusnak ];
};
}