diff --git a/pkgs/development/python-modules/sunweg/default.nix b/pkgs/development/python-modules/sunweg/default.nix new file mode 100644 index 000000000000..18f386577a76 --- /dev/null +++ b/pkgs/development/python-modules/sunweg/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c41bf30acb8c..92c76b4a503a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11194,6 +11194,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 { };