Merge pull request #282284 from fabaff/python-benedict-fix

python311Packages.python-benedict: 0.33.0 -> 0.33.1
This commit is contained in:
Fabian Affolter 2024-01-20 11:59:09 +01:00 committed by GitHub
commit 0503635be0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@
, openpyxl , openpyxl
, orjson , orjson
, phonenumbers , phonenumbers
, beautifulsoup4
, pytestCheckHook , pytestCheckHook
, python-dateutil , python-dateutil
, python-decouple , python-decouple
@ -16,7 +17,7 @@
, pythonRelaxDepsHook , pythonRelaxDepsHook
, pyyaml , pyyaml
, requests , requests
, six , setuptools
, toml , toml
, xlrd , xlrd
, xmltodict , xmltodict
@ -24,52 +25,94 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-benedict"; pname = "python-benedict";
version = "0.33.0"; version = "0.33.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fabiocaccamo"; owner = "fabiocaccamo";
repo = pname; repo = "python-benedict";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-SJBU7jMnyLBdWQPQ/UGbVklKUOrCM3fMnOkXKHQnyPI="; hash = "sha256-QRWyMqHW4C3+718mgp9z/dQ1loesm0Vaf2TzW3yqF3A=";
}; };
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [ pythonRelaxDeps = [
"boto3" "boto3"
]; ];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
boto3
ftfy
mailchecker
openpyxl
phonenumbers
python-dateutil
python-fsutil python-fsutil
python-slugify python-slugify
pyyaml
requests requests
toml
xlrd
xmltodict
]; ];
passthru.optional-dependencies = {
all = [
beautifulsoup4
boto3
ftfy
mailchecker
openpyxl
phonenumbers
python-dateutil
pyyaml
toml
xlrd
xmltodict
];
html = [
beautifulsoup4
xmltodict
];
io = [
beautifulsoup4
openpyxl
pyyaml
toml
xlrd
xmltodict
];
parse = [
ftfy
mailchecker
phonenumbers
python-dateutil
];
s3 = [
boto3
];
toml = [
toml
];
xls = [
openpyxl
xlrd
];
xml = [
xmltodict
];
yaml = [
pyyaml
];
};
nativeCheckInputs = [ nativeCheckInputs = [
orjson orjson
pytestCheckHook pytestCheckHook
python-decouple python-decouple
six ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
];
disabledTests = [ disabledTests = [
# Tests require network access # Tests require network access
"test_from_base64_with_valid_url_valid_content" "test_from_base64_with_valid_url_valid_content"
"test_from_html_with_valid_file_valid_content"
"test_from_html_with_valid_url_valid_content"
"test_from_json_with_valid_url_valid_content" "test_from_json_with_valid_url_valid_content"
"test_from_pickle_with_valid_url_valid_content" "test_from_pickle_with_valid_url_valid_content"
"test_from_plist_with_valid_url_valid_content" "test_from_plist_with_valid_url_valid_content"