python3Packages.pyu2f: 0.1.4 -> 0.1.5a
This commit is contained in:
parent
fc98e85759
commit
16c8941c13
@ -1,34 +1,30 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, buildPythonPackage,
|
{ lib
|
||||||
six, mock, pyfakefs, unittest2, pytest
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, six
|
||||||
|
, mock
|
||||||
|
, pyfakefs
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyu2f";
|
pname = "pyu2f";
|
||||||
version = "0.1.4";
|
version = "0.1.5a";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0waxdydvxn05a8ab9j235mz72x7p4pwa59pnxyk1zzbwxnpxb3p9";
|
sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Platform detection for linux fails
|
|
||||||
postPatch = lib.optionalString stdenv.isLinux ''
|
|
||||||
rm pyu2f/tests/hid/macos_test.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
checkInputs = [ pytest mock pyfakefs unittest2 ];
|
checkInputs = [ mock pyfakefs pytestCheckHook ];
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest pyu2f/tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "U2F host library for interacting with a U2F device over USB";
|
description = "U2F host library for interacting with a U2F device over USB";
|
||||||
homepage = "https://github.com/google/pyu2f/";
|
homepage = "https://github.com/google/pyu2f";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ prusnak ];
|
maintainers = with maintainers; [ prusnak ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user