Merge pull request #109300 from fabaff/pyopnsense
This commit is contained in:
commit
3e956131a5
45
pkgs/development/python-modules/pyopnsense/default.nix
Normal file
45
pkgs/development/python-modules/pyopnsense/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -590,7 +590,7 @@
|
|||||||
"opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
|
"opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
|
||||||
"openuv" = ps: with ps; [ ]; # missing inputs: pyopenuv
|
"openuv" = ps: with ps; [ ]; # missing inputs: pyopenuv
|
||||||
"openweathermap" = ps: with ps; [ pyowm ];
|
"openweathermap" = ps: with ps; [ pyowm ];
|
||||||
"opnsense" = ps: with ps; [ ]; # missing inputs: pyopnsense
|
"opnsense" = ps: with ps; [ pyopnsense ];
|
||||||
"opple" = ps: with ps; [ ]; # missing inputs: pyoppleio
|
"opple" = ps: with ps; [ ]; # missing inputs: pyoppleio
|
||||||
"orangepi_gpio" = ps: with ps; [ ]; # missing inputs: OPi.GPIO
|
"orangepi_gpio" = ps: with ps; [ ]; # missing inputs: OPi.GPIO
|
||||||
"oru" = ps: with ps; [ ]; # missing inputs: oru
|
"oru" = ps: with ps; [ ]; # missing inputs: oru
|
||||||
|
@ -5595,6 +5595,8 @@ in {
|
|||||||
|
|
||||||
pyopenssl = callPackage ../development/python-modules/pyopenssl { };
|
pyopenssl = callPackage ../development/python-modules/pyopenssl { };
|
||||||
|
|
||||||
|
pyopnsense = callPackage ../development/python-modules/pyopnsense { };
|
||||||
|
|
||||||
pyosf = callPackage ../development/python-modules/pyosf { };
|
pyosf = callPackage ../development/python-modules/pyosf { };
|
||||||
|
|
||||||
pyosmium = callPackage ../development/python-modules/pyosmium { };
|
pyosmium = callPackage ../development/python-modules/pyosmium { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user