at 23.05-pre 835 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, mock 5, nose 6, requests 7, yanc 8}: 9 10buildPythonPackage rec { 11 pname = "ovh"; 12 version = "1.0.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-IQzwu0gwfPNPOLQLCO99KL5Hu2094Y+acQBFXVGzHhU="; 18 }; 19 20 propagatedBuildInputs = [ 21 requests 22 ]; 23 24 preCheck = '' 25 export HOME=$(mktemp -d) 26 ''; 27 28 checkInputs = [ 29 mock 30 nose 31 yanc 32 ]; 33 34 # requires network 35 checkPhase = '' 36 nosetests . \ 37 -e test_config_get_conf \ 38 -e test_config_get_custom_conf \ 39 -e test_endpoints \ 40 -e test_init_from_custom_config 41 ''; 42 43 meta = { 44 description = "Thin wrapper around OVH's APIs"; 45 homepage = "https://github.com/ovh/python-ovh"; 46 license = lib.licenses.bsd2; 47 maintainers = [ lib.maintainers.makefu ]; 48 }; 49}