anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / osc-sdk-python / default.nix
blobf296d8307106090e625d5cc66e905a6a14a05ea2
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.30.1";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "outscale";
18     repo = "osc-sdk-python";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-HOYIt4kLKAR8zYmIhjLQoibL3qp9uruFKgkgfnmZOfc=";
21     fetchSubmodules = true;
22   };
24   nativeBuildInputs = [ setuptools ];
26   propagatedBuildInputs = [
27     requests
28     ruamel-yaml
29   ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   postPatch = ''
34     substituteInPlace setup.py \
35       --replace "ruamel.yaml==0.17.32" "ruamel.yaml"
36   '';
38   # Only keep test not requiring access and secret keys
39   pytestFlagsArray = [ "tests/test_net.py" ];
41   pythonImportsCheck = [ "osc_sdk_python" ];
43   meta = with lib; {
44     description = "SDK to perform actions on Outscale API";
45     homepage = "http://github.com/outscale/osc-sdk-python";
46     license = licenses.bsd3;
47     maintainers = with maintainers; [ nicolas-goudry ];
48   };