|
|
|
@ -1,20 +1,45 @@ |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, fetchPypi |
|
|
|
|
, mock |
|
|
|
|
, nose |
|
|
|
|
, requests |
|
|
|
|
, yanc |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "ovh"; |
|
|
|
|
version = "1.0.0"; |
|
|
|
|
|
|
|
|
|
# Needs yanc |
|
|
|
|
doCheck = false; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "sha256-IQzwu0gwfPNPOLQLCO99KL5Hu2094Y+acQBFXVGzHhU="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
requests |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
preCheck = '' |
|
|
|
|
export HOME=$(mktemp -d) |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
mock |
|
|
|
|
nose |
|
|
|
|
yanc |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
# requires network |
|
|
|
|
checkPhase = '' |
|
|
|
|
nosetests . \ |
|
|
|
|
-e test_config_get_conf \ |
|
|
|
|
-e test_config_get_custom_conf \ |
|
|
|
|
-e test_endpoints \ |
|
|
|
|
-e test_init_from_custom_config |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
meta = { |
|
|
|
|
description = "Thin wrapper around OVH's APIs"; |
|
|
|
|
homepage = "https://github.com/ovh/python-ovh"; |
|
|
|
|