Merge pull request #217934 from fabaff/sunweg
python310Packages.sunweg: init at 0.0.8
This commit is contained in:
commit
e7e9a79962
2 changed files with 43 additions and 0 deletions
pkgs
41
pkgs/development/python-modules/sunweg/default.nix
Normal file
41
pkgs/development/python-modules/sunweg/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue