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