pythonPackages.pyu2f: init at 0.1.4
This commit is contained in:
parent
ca13dc163b
commit
344b340815
35
pkgs/development/python-modules/pyu2f/default.nix
Normal file
35
pkgs/development/python-modules/pyu2f/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, lib, fetchFromGitHub, buildPythonPackage,
|
||||||
|
six, mock, pyfakefs, unittest2, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyu2f";
|
||||||
|
version = "0.1.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "google";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0waxdydvxn05a8ab9j235mz72x7p4pwa59pnxyk1zzbwxnpxb3p9";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Platform detection for linux fails
|
||||||
|
postPatch = lib.optionalString stdenv.isLinux ''
|
||||||
|
rm pyu2f/tests/hid/macos_test.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest six mock pyfakefs unittest2 ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest pyu2f/tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "U2F host library for interacting with a U2F device over USB";
|
||||||
|
homepage = https://github.com/google/pyu2f/;
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ prusnak ];
|
||||||
|
};
|
||||||
|
}
|
@ -3729,6 +3729,8 @@ in {
|
|||||||
|
|
||||||
pyls-mypy = callPackage ../development/python-modules/pyls-mypy {};
|
pyls-mypy = callPackage ../development/python-modules/pyls-mypy {};
|
||||||
|
|
||||||
|
pyu2f = callPackage ../development/python-modules/pyu2f { };
|
||||||
|
|
||||||
pyudev = callPackage ../development/python-modules/pyudev {
|
pyudev = callPackage ../development/python-modules/pyudev {
|
||||||
inherit (pkgs) systemd;
|
inherit (pkgs) systemd;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user