nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.pyhanko: fix on darwin

+45 -30
+45 -30
pkgs/development/python-modules/pyhanko/default.nix
··· 45 45 src = fetchFromGitHub { 46 46 owner = "MatthiasValvekens"; 47 47 repo = "pyHanko"; 48 - rev = "refs/tags/v${version}"; 48 + tag = "v${version}"; 49 49 hash = "sha256-HJkCQ5YDVr17gtY4PW89ep7GwFdP21/ruBEKm7j3+Qo="; 50 50 }; 51 51 ··· 92 92 requests-mock 93 93 ] ++ lib.flatten (lib.attrValues optional-dependencies); 94 94 95 - disabledTestPaths = [ 96 - # ModuleNotFoundError: No module named 'csc_dummy' 97 - "pyhanko_tests/test_csc.py" 98 - ]; 95 + disabledTestPaths = 96 + [ 97 + # ModuleNotFoundError: No module named 'csc_dummy' 98 + "pyhanko_tests/test_csc.py" 99 + ] 100 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 101 + # OSError: One or more parameters passed to a function were not valid. 102 + "pyhanko_tests/cli_tests" 103 + ]; 99 104 100 - disabledTests = [ 101 - # Most of the test require working with local certificates, 102 - # contacting OSCP or performing requests 103 - "test_generic_data_sign_legacy" 104 - "test_generic_data_sign" 105 - "test_cms_v3_sign" 106 - "test_detached_cms_with_self_reported_timestamp" 107 - "test_detached_cms_with_tst" 108 - "test_detached_cms_with_content_tst" 109 - "test_detached_cms_with_wrong_content_tst" 110 - "test_detached_with_malformed_content_tst" 111 - "test_noop_attribute_prov" 112 - "test_detached_cades_cms_with_tst" 113 - "test_read_qr_config" 114 - "test_no_changes_policy" 115 - "test_bogus_metadata_manipulation" 116 - "test_tamper_sig_obj" 117 - "test_signed_file_diff_proxied_objs" 118 - "test_pades_revinfo_live" 119 - "test_diff_fallback_ok" 120 - "test_no_diff_summary" 121 - "test_ocsp_embed" 122 - "test_ts_fetch_aiohttp" 123 - "test_ts_fetch_requests" 124 - ]; 105 + disabledTests = 106 + [ 107 + # Most of the test require working with local certificates, 108 + # contacting OSCP or performing requests 109 + "test_generic_data_sign_legacy" 110 + "test_generic_data_sign" 111 + "test_cms_v3_sign" 112 + "test_detached_cms_with_self_reported_timestamp" 113 + "test_detached_cms_with_tst" 114 + "test_detached_cms_with_content_tst" 115 + "test_detached_cms_with_wrong_content_tst" 116 + "test_detached_with_malformed_content_tst" 117 + "test_noop_attribute_prov" 118 + "test_detached_cades_cms_with_tst" 119 + "test_read_qr_config" 120 + "test_no_changes_policy" 121 + "test_bogus_metadata_manipulation" 122 + "test_tamper_sig_obj" 123 + "test_signed_file_diff_proxied_objs" 124 + "test_pades_revinfo_live" 125 + "test_diff_fallback_ok" 126 + "test_no_diff_summary" 127 + "test_ocsp_embed" 128 + "test_ts_fetch_aiohttp" 129 + "test_ts_fetch_requests" 130 + ] 131 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 132 + # OSError: One or more parameters passed to a function were not valid. 133 + "test_detached_cms_with_duplicated_attr" 134 + "test_detached_cms_with_wrong_tst" 135 + "test_diff_analysis_add_extensions_dict" 136 + "test_diff_analysis_update_indirect_extensions_not_all_path" 137 + "test_no_certificates" 138 + "test_ocsp_without_nextupdate_embed" 139 + ]; 125 140 126 141 pythonImportsCheck = [ "pyhanko" ]; 127 142