Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / osc-sdk-python / default.nix
blob74d617efe500809964b09d940cd0e53e1babee77
2   lib
3   , buildPythonPackage
4   , fetchFromGitHub
5   , pytestCheckHook
6   , requests
7   , ruamel-yaml
8   , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "osc-sdk-python";
13   version = "0.27.0";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "outscale";
18     repo = "osc-sdk-python";
19     rev = "v${version}";
20     hash = "sha256-dp4yE8cTeXAPoixJ6ZtsvcTSKdYpDIebHkddUiqJe5Q=";
21     fetchSubmodules = true;
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     requests
30     ruamel-yaml
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   postPatch = ''
38     substituteInPlace setup.py \
39       --replace "ruamel.yaml==0.17.32" "ruamel.yaml"
40   '';
42   # Only keep test not requiring access and secret keys
43   pytestFlagsArray = [
44     "tests/test_net.py"
45   ];
47   pythonImportsCheck = [
48     "osc_sdk_python"
49   ];
51   meta = with lib; {
52     description = "SDK to perform actions on Outscale API";
53     homepage = "http://github.com/outscale/osc-sdk-python";
54     license = licenses.bsd3;
55     maintainers = with maintainers; [ nicolas-goudry ];
56   };