depot/third_party/nixpkgs/pkgs/development/python-modules/python-benedict/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

76 lines
1.5 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, ftfy
, mailchecker
, orjson
, phonenumbers
, pytestCheckHook
, python-dateutil
, python-fsutil
, pythonOlder
, python-slugify
, pyyaml
, requests
, six
, toml
, xmltodict
}:
buildPythonPackage rec {
pname = "python-benedict";
version = "0.25.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fabiocaccamo";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-q7aQW4XRlKp+X1iItHVEsHEjkl2DU9QG0eMrcuq+rc4=";
};
propagatedBuildInputs = [
mailchecker
phonenumbers
python-dateutil
python-fsutil
python-slugify
pyyaml
ftfy
orjson
requests
toml
xmltodict
];
checkInputs = [
pytestCheckHook
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_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";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}