14 , pyhanko-certvalidator
33 buildPythonPackage rec {
38 disabled = pythonOlder "3.8";
40 src = fetchFromGitHub {
41 owner = "MatthiasValvekens";
43 rev = "refs/tags/v${version}";
44 hash = "sha256-+RlrXuKMY89mO4iuFw7RLQABy+wLrAeHlEvTDCpBSqU=";
48 substituteInPlace pyproject.toml \
49 --replace ' "pytest-runner",' ""
57 propagatedBuildInputs = [
69 passthru.optional-dependencies = {
103 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
105 disabledTestPaths = [
106 # ModuleNotFoundError: No module named 'csc_dummy'
107 "pyhanko_tests/test_csc.py"
111 # Most of the test require working with local certificates,
112 # contacting OSCP or performing requests
113 "test_generic_data_sign_legacy"
114 "test_generic_data_sign"
116 "test_detached_cms_with_self_reported_timestamp"
117 "test_detached_cms_with_tst"
118 "test_detached_cms_with_content_tst"
119 "test_detached_cms_with_wrong_content_tst"
120 "test_detached_with_malformed_content_tst"
121 "test_noop_attribute_prov"
122 "test_detached_cades_cms_with_tst"
123 "test_read_qr_config"
124 "test_no_changes_policy"
125 "test_bogus_metadata_manipulation"
126 "test_tamper_sig_obj"
127 "test_signed_file_diff_proxied_objs"
128 "test_pades_revinfo_live"
129 "test_diff_fallback_ok"
130 "test_no_diff_summary"
132 "test_ts_fetch_aiohttp"
133 "test_ts_fetch_requests"
136 pythonImportsCheck = [
141 description = "Sign and stamp PDF files";
142 mainProgram = "pyhanko";
143 homepage = "https://github.com/MatthiasValvekens/pyHanko";
144 changelog = "https://github.com/MatthiasValvekens/pyHanko/blob/v${version}/docs/changelog.rst";
145 license = licenses.mit;
146 maintainers = with maintainers; [ wolfangaukang ];