nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 950 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 requests, 7 ruamel-yaml, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "osc-sdk-python"; 13 version = "0.38.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "outscale"; 18 repo = "osc-sdk-python"; 19 tag = "v${version}"; 20 hash = "sha256-dS4vwBSvsjPu8JToXPww2tfN+zzCK/qzbxyZwA/n6js="; 21 fetchSubmodules = true; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ 27 requests 28 ruamel-yaml 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonRelaxDeps = [ 34 "ruamel.yaml" 35 ]; 36 37 # Only keep test not requiring access and secret keys 38 enabledTestPaths = [ "tests/test_net.py" ]; 39 40 pythonImportsCheck = [ "osc_sdk_python" ]; 41 42 meta = { 43 description = "SDK to perform actions on Outscale API"; 44 homepage = "https://github.com/outscale/osc-sdk-python"; 45 license = lib.licenses.bsd3; 46 maintainers = [ ]; 47 }; 48}