summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyopnsense/default.nix
blob: ffd2409b8bf87c88c9a6aa211ea076c3183f2518 (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
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fixtures,
  mock,
  pbr,
  pytestCheckHook,
  requests,
  testtools,
}:

buildPythonPackage rec {
  pname = "pyopnsense";
  version = "0.4.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3DKlVrOtMa55gTu557pgojRpdgrO5pEZ3L+9gKoW9yg=";
  };

  build-system = [ pbr ];

  dependencies = [
    requests
  ];

  nativeCheckInputs = [
    fixtures
    mock
    pytestCheckHook
    testtools
  ];

  pythonImportsCheck = [ "pyopnsense" ];

  meta = {
    description = "Python client for the OPNsense API";
    homepage = "https://github.com/mtreinish/pyopnsense";
    changelog = "https://github.com/mtreinish/pyopnsense/releases/tag/${version}";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ fab ];
  };
}