at 24.11-pre 976 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 requests, 8}: 9 10buildPythonPackage rec { 11 pname = "ovh"; 12 version = "1.1.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-EI+bWjtHEZPOSkWJx3gvS8y//gugMWl3TrBHKsKO9nk="; 20 }; 21 22 propagatedBuildInputs = [ requests ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "ovh" ]; 27 28 disabledTests = [ 29 # Tests require network access 30 "test_config_from_files" 31 "test_config_from_given_config_file" 32 "test_config_from_invalid_ini_file" 33 "test_config_from_only_one_file" 34 "test_endpoints" 35 ]; 36 37 meta = with lib; { 38 description = "Thin wrapper around OVH's APIs"; 39 homepage = "https://github.com/ovh/python-ovh"; 40 changelog = "https://github.com/ovh/python-ovh/blob/v${version}/CHANGELOG.md"; 41 license = licenses.bsd2; 42 maintainers = with maintainers; [ makefu ]; 43 }; 44}