Unverified Commit 24d1a09a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.pyopnsense: modernize (#420115)

parents 11a979ac 7fd06b8e
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -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 ];
  };
}