mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-23 21:55:53 +02:00
python3Packages.ovh: propagate requests
This commit is contained in:
parent
d744db51bc
commit
dd0dd6a6d0
|
@ -1,20 +1,45 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, requests
|
||||||
|
, yanc
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ovh";
|
pname = "ovh";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
format = "setuptools";
|
||||||
# Needs yanc
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-IQzwu0gwfPNPOLQLCO99KL5Hu2094Y+acQBFXVGzHhU=";
|
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 = {
|
meta = {
|
||||||
description = "Thin wrapper around OVH's APIs";
|
description = "Thin wrapper around OVH's APIs";
|
||||||
homepage = "https://github.com/ovh/python-ovh";
|
homepage = "https://github.com/ovh/python-ovh";
|
||||||
|
|
Loading…
Reference in a new issue