Merge pull request #237567 from SuperSandro2000/python-f5-sdk

python310.pkgs.f5-sdk: init at 3.0.21
This commit is contained in:
Sandro 2023-06-26 22:01:52 +02:00 committed by GitHub
commit 96e46251e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, six
}:
buildPythonPackage rec {
pname = "f5-icontrol-rest";
version = "1.3.15";
format = "setuptools";
src = fetchFromGitHub {
owner = "F5Networks";
repo = "f5-icontrol-rest-python";
rev = "v${version}";
sha256 = "sha256-ScudlJTQfa0BsEVI+mIndYWF8OcARdxwFwTAOEJxA8w=";
};
propagatedBuildInputs = [
requests
six
];
# needs to be updated to newer pytest version and requires physical device
doCheck = false;
pytestFlags = [
"icontrol/test"
];
pythonImportsCheck = [ "icontrol" ];
meta = with lib; {
description = "F5 BIG-IP iControl REST API client";
homepage = "https://github.com/F5Networks/f5-icontrol-rest-python";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, f5-icontrol-rest
, six
}:
buildPythonPackage rec {
pname = "f5-sdk";
version = "3.0.21";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-IokMj9mCMsFMVFYO4CpZUB2i32cOamhS5u2mNkNjljo=";
};
propagatedBuildInputs = [
f5-icontrol-rest
six
];
# needs to be updated to newer pytest version and requires physical device
doCheck = false;
pythonImportsCheck = [ "f5" ];
meta = with lib; {
description = "F5 Networks Python SDK";
homepage = "https://github.com/F5Networks/f5-common-python";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -3443,6 +3443,10 @@ self: super: with self; {
ezyrb = callPackage ../development/python-modules/ezyrb { };
f5-icontrol-rest = callPackage ../development/python-modules/f5-icontrol-rest { };
f5-sdk = callPackage ../development/python-modules/f5-sdk { };
f90nml = callPackage ../development/python-modules/f90nml { };
fabric = callPackage ../development/python-modules/fabric { };