python3Packages.pyopnsense: modernize

Changed files
+7 -9
pkgs
development
python-modules
pyopnsense
+7 -9
pkgs/development/python-modules/pyopnsense/default.nix
···
mock,
pbr,
pytestCheckHook,
-
pythonOlder,
requests,
testtools,
}:
···
buildPythonPackage rec {
pname = "pyopnsense";
version = "0.4.0";
-
format = "setuptools";
-
-
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-3DKlVrOtMa55gTu557pgojRpdgrO5pEZ3L+9gKoW9yg=";
};
-
propagatedBuildInputs = [
-
pbr
requests
];
···
pythonImportsCheck = [ "pyopnsense" ];
-
meta = with lib; {
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 ];
};
}
···
mock,
pbr,
pytestCheckHook,
requests,
testtools,
}:
···
buildPythonPackage rec {
pname = "pyopnsense";
version = "0.4.0";
+
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-3DKlVrOtMa55gTu557pgojRpdgrO5pEZ3L+9gKoW9yg=";
};
+
build-system = [ pbr ];
+
+
dependencies = [
requests
];
···
pythonImportsCheck = [ "pyopnsense" ];
+
meta = {
description = "Python client for the OPNsense API";
homepage = "https://github.com/mtreinish/pyopnsense";
changelog = "https://github.com/mtreinish/pyopnsense/releases/tag/${version}";
+
license = lib.licenses.gpl3Plus;
+
maintainers = with lib.maintainers; [ fab ];
};
}