Merge pull request from fabaff/sunweg

python310Packages.sunweg: init at 0.0.8
This commit is contained in:
Fabian Affolter 2023-02-25 09:25:39 +01:00 committed by GitHub
commit e7e9a79962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions
pkgs
development/python-modules/sunweg
top-level

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "sunweg";
version = "0.0.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rokam";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-IIVVLBoyMwp5BsdIf4Q6e5ObXONm1odpgxOE6tkFH5s=";
};
propagatedBuildInputs = [
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"sunweg"
];
meta = with lib; {
description = "Module to access the WEG solar energy platform";
homepage = "https://github.com/rokam/sunweg";
changelog = "https://github.com/rokam/sunweg/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -11204,6 +11204,8 @@ self: super: with self; {
sunwatcher = callPackage ../development/python-modules/sunwatcher { };
sunweg = callPackage ../development/python-modules/sunweg { };
supervise_api = callPackage ../development/python-modules/supervise_api { };
supervisor = callPackage ../development/python-modules/supervisor { };