python311Packages.certauth: fix tests

This commit is contained in:
Robert Schütz 2024-03-03 14:30:14 -08:00
parent 973f67ed60
commit 431494efe0

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools
, pyopenssl , pyopenssl
, tldextract , tldextract
, pytestCheckHook , pytestCheckHook
@ -10,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "certauth"; pname = "certauth";
version = "1.3.0"; version = "1.3.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -24,9 +25,13 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "--cov certauth " "" --replace-fail "--cov certauth " ""
''; '';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
pyopenssl pyopenssl
tldextract tldextract
@ -41,6 +46,9 @@ buildPythonPackage rec {
]; ];
disabledTests = [ disabledTests = [
# https://github.com/ikreymer/certauth/issues/23
"test_ca_cert_in_mem"
"test_custom_not_before_not_after"
# Tests want to download Public Suffix List # Tests want to download Public Suffix List
"test_file_wildcard" "test_file_wildcard"
"test_file_wildcard_subdomains" "test_file_wildcard_subdomains"