Merge pull request #120262 from fabaff/openerz-api

python3Packages.openerz-api: init at 0.1.0
This commit is contained in:
Fabian Affolter 2021-04-23 10:02:10 +02:00 committed by GitHub
commit e097a355c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, testfixtures
}:
buildPythonPackage rec {
pname = "openerz-api";
version = "0.1.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "misialq";
repo = pname;
rev = "v${version}";
sha256 = "10kxsmaz2rn26jijaxmdmhx8vjdz8hrhlrvd39gc8yvqbjwhi3nw";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
testfixtures
];
pythonImportsCheck = [ "openerz_api" ];
meta = with lib; {
description = "Python module to interact with the OpenERZ API";
homepage = "https://github.com/misialq/openerz-api";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -590,7 +590,7 @@
"openalpr_cloud" = ps: with ps; [ ]; "openalpr_cloud" = ps: with ps; [ ];
"openalpr_local" = ps: with ps; [ ]; "openalpr_local" = ps: with ps; [ ];
"opencv" = ps: with ps; [ numpy ]; # missing inputs: opencv-python-headless "opencv" = ps: with ps; [ numpy ]; # missing inputs: opencv-python-headless
"openerz" = ps: with ps; [ ]; # missing inputs: openerz-api "openerz" = ps: with ps; [ openerz-api ];
"openevse" = ps: with ps; [ ]; # missing inputs: openevsewifi "openevse" = ps: with ps; [ ]; # missing inputs: openevsewifi
"openexchangerates" = ps: with ps; [ ]; "openexchangerates" = ps: with ps; [ ];
"opengarage" = ps: with ps; [ ]; # missing inputs: open-garage "opengarage" = ps: with ps; [ ]; # missing inputs: open-garage

View file

@ -324,6 +324,7 @@ in with py.pkgs; buildPythonApplication rec {
"number" "number"
"omnilogic" "omnilogic"
"ondilo_ico" "ondilo_ico"
"openerz"
"ozw" "ozw"
"panel_custom" "panel_custom"
"panel_iframe" "panel_iframe"

View file

@ -4906,6 +4906,8 @@ in {
pythonPackages = self; pythonPackages = self;
})); }));
openerz-api = callPackage ../development/python-modules/openerz-api { };
openhomedevice = callPackage ../development/python-modules/openhomedevice { }; openhomedevice = callPackage ../development/python-modules/openhomedevice { };
openidc-client = callPackage ../development/python-modules/openidc-client { }; openidc-client = callPackage ../development/python-modules/openidc-client { };