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