Merge pull request #313458 from fabaff/fido2-py312

python312Packages.fido2: refactor
This commit is contained in:
Fabian Affolter 2024-05-24 23:23:25 +02:00 committed by GitHub
commit b64987ff75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,38 +3,33 @@
buildPythonPackage,
cryptography,
fetchPypi,
mock,
poetry-core,
pyfakefs,
pyscard,
pythonOlder,
six,
unittestCheckHook,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fido2";
version = "1.1.3";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-JhAPIm0SztYhymGYUozhft9nt430KHruEoX+481aqfw=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
cryptography
six
];
dependencies = [ cryptography ];
nativeCheckInputs = [
unittestCheckHook
mock
pyfakefs
];
passthru.optional-dependencies = {
pcsc = [ pyscard ];
};
nativeCheckInputs = [ pytestCheckHook ];
unittestFlagsArray = [ "-v" ];