python311Packages.sigstore: disable failing tests

This commit is contained in:
Fabian Affolter 2024-01-19 09:29:29 +01:00
parent 9e3c863a43
commit df25e98ea6

View file

@ -6,6 +6,7 @@
, flit-core , flit-core
, id , id
, importlib-resources , importlib-resources
, pretend
, pydantic , pydantic
, pyjwt , pyjwt
, pyopenssl , pyopenssl
@ -16,6 +17,7 @@
, sigstore-protobuf-specs , sigstore-protobuf-specs
, sigstore-rekor-types , sigstore-rekor-types
, tuf , tuf
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -23,6 +25,8 @@ buildPythonPackage rec {
version = "2.1.0"; version = "2.1.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sigstore"; owner = "sigstore";
repo = "sigstore-python"; repo = "sigstore-python";
@ -51,13 +55,31 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pretend
pytestCheckHook pytestCheckHook
]; ];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ pythonImportsCheck = [
"sigstore" "sigstore"
]; ];
disabledTests = [
# Tests require network access
"test_fail_init_url"
"test_get_identity_token_bad_code"
"test_identity_proof_claim_lookup"
"test_init_url"
"test_production"
"test_sct_verify_keyring"
"test_sign_rekor_entry_consistent"
"test_verification_materials_retrieves_rekor_entry"
"test_verifier"
];
meta = with lib; { meta = with lib; {
description = "A codesigning tool for Python packages"; description = "A codesigning tool for Python packages";
homepage = "https://github.com/sigstore/sigstore-python"; homepage = "https://github.com/sigstore/sigstore-python";