diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/f5-icontrol-rest/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/f5-icontrol-rest/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/f5-icontrol-rest/default.nix b/nixpkgs/pkgs/development/python-modules/f5-icontrol-rest/default.nix new file mode 100644 index 000000000000..080c3f5f0d73 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/f5-icontrol-rest/default.nix @@ -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 ]; + }; +} |