e3220320ca
https://github.com/Yubico/python-fido2/releases/tag/1.1.1 We mainly needed the part increasing version constraint. https://hydra.nixos.org/build/216729240/nixlog/4/tail
38 lines
822 B
Nix
38 lines
822 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, poetry-core
|
|
, six
|
|
, cryptography
|
|
, mock
|
|
, pyfakefs
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fido2";
|
|
version = "1.1.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-XcSVyoxZwcM3ODtLjDFNRrktXG/GUOcZhMbX+VQHn8M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [ six cryptography ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook mock pyfakefs ];
|
|
|
|
unittestFlagsArray = [ "-v" ];
|
|
|
|
pythonImportsCheck = [ "fido2" ];
|
|
|
|
meta = with lib; {
|
|
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
|
|
homepage = "https://github.com/Yubico/python-fido2";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|