Loading pkgs/development/python-modules/ovh/default.nix +19 −20 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchPypi , mock , nose , pytestCheckHook , pythonOlder , requests , yanc }: buildPythonPackage rec { pname = "ovh"; version = "1.0.0"; version = "1.1.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-IQzwu0gwfPNPOLQLCO99KL5Hu2094Y+acQBFXVGzHhU="; hash = "sha256-EI+bWjtHEZPOSkWJx3gvS8y//gugMWl3TrBHKsKO9nk="; }; propagatedBuildInputs = [ requests ]; preCheck = '' export HOME=$(mktemp -d) ''; nativeCheckInputs = [ mock nose yanc pytestCheckHook ]; # requires network checkPhase = '' nosetests . \ -e test_config_get_conf \ -e test_config_get_custom_conf \ -e test_endpoints \ -e test_init_from_custom_config ''; pythonImportsCheck = [ "ovh" ]; disabledTests = [ # Tests require network access "test_config_from_files" "test_config_from_given_config_file" "test_config_from_invalid_ini_file" "test_config_from_only_one_file" "test_endpoints" ]; meta = with lib; { description = "Thin wrapper around OVH's APIs"; Loading Loading
pkgs/development/python-modules/ovh/default.nix +19 −20 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchPypi , mock , nose , pytestCheckHook , pythonOlder , requests , yanc }: buildPythonPackage rec { pname = "ovh"; version = "1.0.0"; version = "1.1.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-IQzwu0gwfPNPOLQLCO99KL5Hu2094Y+acQBFXVGzHhU="; hash = "sha256-EI+bWjtHEZPOSkWJx3gvS8y//gugMWl3TrBHKsKO9nk="; }; propagatedBuildInputs = [ requests ]; preCheck = '' export HOME=$(mktemp -d) ''; nativeCheckInputs = [ mock nose yanc pytestCheckHook ]; # requires network checkPhase = '' nosetests . \ -e test_config_get_conf \ -e test_config_get_custom_conf \ -e test_endpoints \ -e test_init_from_custom_config ''; pythonImportsCheck = [ "ovh" ]; disabledTests = [ # Tests require network access "test_config_from_files" "test_config_from_given_config_file" "test_config_from_invalid_ini_file" "test_config_from_only_one_file" "test_endpoints" ]; meta = with lib; { description = "Thin wrapper around OVH's APIs"; Loading