1{ lib
2, buildPythonPackage
3, fetchPypi
4, fixtures
5, mock
6, pbr
7, pytest-cov
8, pytestCheckHook
9, pythonOlder
10, requests
11, six
12}:
13
14buildPythonPackage rec {
15 pname = "pyopnsense";
16 version = "0.3.0";
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "06rssdb3zhccnm63z96mw5yd38d9i99fgigfcdxn9divalbbhp5a";
22 };
23
24 propagatedBuildInputs = [
25 pbr
26 six
27 requests
28 ];
29
30 checkInputs = [
31 fixtures
32 mock
33 pytest-cov
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "pyopnsense" ];
38
39 meta = with lib; {
40 description = "Python client for the OPNsense API";
41 homepage = "https://github.com/mtreinish/pyopnsense";
42 license = with licenses; [ gpl3Plus ];
43 maintainers = with maintainers; [ fab ];
44 };
45}