summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/f5-icontrol-rest/default.nix
blob: b09670e6981735ad12a3199b3bda26a1cae9cefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  six,
}:

buildPythonPackage rec {
  pname = "f5-icontrol-rest";
  version = "1.3.16";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "F5Networks";
    repo = "f5-icontrol-rest-python";
    tag = "v${version}";
    sha256 = "sha256-asAFIRoc2zll8a8gMMt4ZRQILhMAes8wf3PGwG5wF9c=";
  };

  propagatedBuildInputs = [
    requests
    six
  ];

  # needs to be updated to newer pytest version and requires physical device
  doCheck = false;

  enabledTestPaths = [ "icontrol/test" ];

  pythonImportsCheck = [ "icontrol" ];

  meta = {
    description = "F5 BIG-IP iControl REST API client";
    homepage = "https://github.com/F5Networks/f5-icontrol-rest-python";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ SuperSandro2000 ];
  };
}