python312Packages.pyhanko: 0.25.1 -> 0.25.3 (#357713)

This commit is contained in:
Robert Schütz 2024-11-22 14:49:24 -08:00 committed by GitHub
commit ba1cb7c8e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 41 deletions

View File

@ -2,7 +2,6 @@
lib,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
fetchFromGitHub,
# build-system
setuptools,
@ -30,17 +29,16 @@
buildPythonPackage rec {
pname = "certomancer";
version = "0.12.0";
version = "0.12.3";
pyproject = true;
# https://github.com/MatthiasValvekens/certomancer/issues/12
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MatthiasValvekens";
repo = "certomancer";
rev = "refs/tags/v${version}";
hash = "sha256-c2Fq4YTHQvhxuZrpKQYZvqHIMfubbkeKV4rctELLeJU=";
hash = "sha256-2BjLoGUWU0RaWVI9JA3s/Hf5aVtmv8hn+fB2jkWdQNY=";
};
build-system = [
@ -75,11 +73,6 @@ buildPythonPackage rec {
requests
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTests = [
# pyhanko_certvalidator.errors.DisallowedAlgorithmError
"test_validate"
];
pythonImportsCheck = [ "certomancer" ];
meta = {

View File

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "pyhanko-certvalidator";
version = "0.26.3";
version = "0.26.5";
pyproject = true;
disabled = pythonOlder "3.7";
@ -26,17 +26,12 @@ buildPythonPackage rec {
owner = "MatthiasValvekens";
repo = "certvalidator";
rev = "refs/tags/v${version}";
hash = "sha256-uUmsWiN182g+kxrCny7UNLDHdAdqKk64w6vnjmGBNjM=";
hash = "sha256-+/3n+v/8Tpqt7UoOrBi4S84N6Jioay7e2j+SvKJeoLA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace ', "pytest-runner",' ""
'';
build-system = [ setuptools ];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
asn1crypto
cryptography
oscrypto
@ -51,26 +46,6 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTestPaths = [
# Requests
"tests/test_crl_client.py"
];
disabledTests = [
# Look for nonexisting certificates
"test_basic_certificate_validator_tls"
# Failed to fetch OCSP response from http://ocsp.digicert.com
"test_fetch_ocsp_aiohttp"
"test_fetch_ocsp_requests"
"test_fetch_ocsp_err_requests"
# Unable to build a validation path for the certificate "%s" - no issuer matching "%s" was found
"test_revocation_mode_hard_aiohttp_autofetch"
# The path could not be validated because no revocation information could be found for intermediate certificate 1
"test_revocation_mode_hard"
# ValueError: Hash algorithm not known for ed448
"test_ed"
];
pythonImportsCheck = [ "pyhanko_certvalidator" ];
meta = with lib; {

View File

@ -39,18 +39,22 @@
buildPythonPackage rec {
pname = "pyhanko";
version = "0.25.1";
version = "0.25.3";
pyproject = true;
src = fetchFromGitHub {
owner = "MatthiasValvekens";
repo = "pyHanko";
rev = "refs/tags/v${version}";
hash = "sha256-keWAiqwaMZYh92B0mlR4+jjxBKLOAJ9Kgc0l0GiIQbc=";
hash = "sha256-HJkCQ5YDVr17gtY4PW89ep7GwFdP21/ruBEKm7j3+Qo=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [
"cryptography"
];
dependencies = [
asn1crypto
click