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