checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
814 B
Nix
44 lines
814 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, six
|
|
, mock
|
|
, pyfakefs
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyu2f";
|
|
version = "0.1.5a";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pyfakefs
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# API breakage with pyfakefs>=5.0
|
|
"pyu2f/tests/hid/linux_test.py"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|