From f21ae7bf32b960af3fcf8ea2278a099696175d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 18 Jun 2021 15:36:44 +0200 Subject: [PATCH] python3Packages.sense-energy: init at 0.9.0 --- .../python-modules/sense-energy/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/sense-energy/default.nix diff --git a/pkgs/development/python-modules/sense-energy/default.nix b/pkgs/development/python-modules/sense-energy/default.nix new file mode 100644 index 000000000000..a3cd63d485ea --- /dev/null +++ b/pkgs/development/python-modules/sense-energy/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, aiohttp +, requests +, websocket-client +, websockets +}: + +buildPythonPackage rec { + pname = "sense-energy"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "scottbonline"; + repo = "sense"; + rev = version; + sha256 = "1lbarsa9wpm7hnhgf2g253w0gs80cn989dnj4aqmic57x5isikhz"; + }; + + propagatedBuildInputs = [ + aiohttp + requests + websocket-client + websockets + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "sense_energy" ]; + + meta = with lib; { + description = "API for the Sense Energy Monitor"; + homepage = "https://github.com/scottbonline/sense"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9d5f97f6def8..11534d3970ec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7722,6 +7722,8 @@ in { sendgrid = callPackage ../development/python-modules/sendgrid { }; + sense-energy = callPackage ../development/python-modules/sense-energy { }; + sentencepiece = callPackage ../development/python-modules/sentencepiece { inherit (pkgs) sentencepiece; };