e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
94 lines
1.8 KiB
Nix
94 lines
1.8 KiB
Nix
{ lib
|
|
, boto3
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ftfy
|
|
, mailchecker
|
|
, openpyxl
|
|
, orjson
|
|
, phonenumbers
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, python-decouple
|
|
, python-fsutil
|
|
, python-slugify
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, pyyaml
|
|
, requests
|
|
, six
|
|
, toml
|
|
, xlrd
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-benedict";
|
|
version = "0.33.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabiocaccamo";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-SJBU7jMnyLBdWQPQ/UGbVklKUOrCM3fMnOkXKHQnyPI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"boto3"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
boto3
|
|
ftfy
|
|
mailchecker
|
|
openpyxl
|
|
phonenumbers
|
|
python-dateutil
|
|
python-fsutil
|
|
python-slugify
|
|
pyyaml
|
|
requests
|
|
toml
|
|
xlrd
|
|
xmltodict
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
orjson
|
|
pytestCheckHook
|
|
python-decouple
|
|
six
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"test_from_base64_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 = with lib; {
|
|
description = "Module with keylist/keypath support";
|
|
homepage = "https://github.com/fabiocaccamo/python-benedict";
|
|
changelog = "https://github.com/fabiocaccamo/python-benedict/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|