Merge pull request #109300 from fabaff/pyopnsense

This commit is contained in:
Sandro 2021-01-14 13:21:13 +01:00 committed by GitHub
commit 3e956131a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, fixtures
, mock
, pbr
, pytest-cov
, pytestCheckHook
, pythonOlder
, requests
, six
}:
buildPythonPackage rec {
pname = "pyopnsense";
version = "0.3.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "06rssdb3zhccnm63z96mw5yd38d9i99fgigfcdxn9divalbbhp5a";
};
propagatedBuildInputs = [
pbr
six
requests
];
checkInputs = [
fixtures
mock
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "pyopnsense" ];
meta = with lib; {
description = "Python client for the OPNsense API";
homepage = "https://github.com/mtreinish/pyopnsense";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -590,7 +590,7 @@
"opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
"openuv" = ps: with ps; [ ]; # missing inputs: pyopenuv
"openweathermap" = ps: with ps; [ pyowm ];
"opnsense" = ps: with ps; [ ]; # missing inputs: pyopnsense
"opnsense" = ps: with ps; [ pyopnsense ];
"opple" = ps: with ps; [ ]; # missing inputs: pyoppleio
"orangepi_gpio" = ps: with ps; [ ]; # missing inputs: OPi.GPIO
"oru" = ps: with ps; [ ]; # missing inputs: oru

View File

@ -5595,6 +5595,8 @@ in {
pyopenssl = callPackage ../development/python-modules/pyopenssl { };
pyopnsense = callPackage ../development/python-modules/pyopnsense { };
pyosf = callPackage ../development/python-modules/pyosf { };
pyosmium = callPackage ../development/python-modules/pyosmium { };