python3Packages.pyopnsense: modernize (#420115)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user