1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
{
lib,
boto3,
buildPythonPackage,
fetchFromGitHub,
ftfy,
mailchecker,
openpyxl,
orjson,
phonenumbers,
beautifulsoup4,
pytestCheckHook,
python-dateutil,
python-decouple,
python-fsutil,
python-slugify,
pyyaml,
requests,
setuptools,
toml,
useful-types,
xlrd,
xmltodict,
}:
buildPythonPackage rec {
pname = "python-benedict";
version = "0.35.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fabiocaccamo";
repo = "python-benedict";
tag = version;
hash = "sha256-b9tAK500Hr2flYI82weNMCM88d6b5+Oz9HgvBDaqNZw=";
};
pythonRelaxDeps = [ "boto3" ];
build-system = [ setuptools ];
dependencies = [
python-fsutil
python-slugify
requests
useful-types
];
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 = [
orjson
pytestCheckHook
python-decouple
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = [
# Tests require network access
"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_pickle_with_valid_url_valid_content"
"test_from_plist_with_valid_url_valid_content"
"test_from_query_string_with_valid_url_valid_content"
"test_from_toml_with_valid_url_valid_content"
"test_from_xls_with_valid_url_valid_content"
"test_from_xml_with_valid_url_valid_content"
"test_from_yaml_with_valid_url_valid_content"
];
pythonImportsCheck = [ "benedict" ];
meta = {
description = "Module with keylist/keypath support";
homepage = "https://github.com/fabiocaccamo/python-benedict";
changelog = "https://github.com/fabiocaccamo/python-benedict/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|