python3Packages.pyopnsense: modernize (#420115)

This commit is contained in:
Fabian Affolter
2025-06-26 09:53:41 +02:00
committed by GitHub
@@ -6,7 +6,6 @@
mock,
pbr,
pytestCheckHook,
pythonOlder,
requests,
testtools,
}:
@@ -14,17 +13,16 @@
buildPythonPackage rec {
pname = "pyopnsense";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-3DKlVrOtMa55gTu557pgojRpdgrO5pEZ3L+9gKoW9yg=";
};
propagatedBuildInputs = [
pbr
build-system = [ pbr ];
dependencies = [
requests
];
@@ -37,11 +35,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pyopnsense" ];
meta = with lib; {
meta = {
description = "Python client for the OPNsense API";
homepage = "https://github.com/mtreinish/pyopnsense";
changelog = "https://github.com/mtreinish/pyopnsense/releases/tag/${version}";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}