summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-28 00:09:04 +0200
committerGitHub <noreply@github.com>2021-06-28 00:09:04 +0200
commitdbf5cd2d90cbf8b281c1938632b431d1e61d3249 (patch)
tree781a1e028d5fb6b578a328023b27126c9801e8a4 /pkgs/development/python-modules
parent26d76cf4326ad6097be9169761857fd6acc5bb31 (diff)
parentc82cb95a02ed74ba3105a318d13e48acf86f8a5a (diff)
Merge pull request #127997 from dotlambda/python-juicenet-init
home-assistant: support juicenet component
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/python-juicenet/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-juicenet/default.nix b/pkgs/development/python-modules/python-juicenet/default.nix
new file mode 100644
index 000000000000..1547c8914617
--- /dev/null
+++ b/pkgs/development/python-modules/python-juicenet/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, aiohttp
+}:
+
+buildPythonPackage rec {
+ pname = "python-juicenet";
+ version = "1.0.2";
+
+ src = fetchFromGitHub {
+ owner = "jesserockz";
+ repo = "python-juicenet";
+ rev = "v${version}";
+ sha256 = "04547pj51ds31yhyc7ng47v9giz16h2s3wgb6szc8ivhb5rclqz2";
+ };
+
+ propagatedBuildInputs = [
+ aiohttp
+ ];
+
+ # no tests implemented
+ doCheck = false;
+
+ pythonImportsCheck = [ "pyjuicenet" ];
+
+ meta = with lib; {
+ description = "Read and control Juicenet/Juicepoint/Juicebox based EVSE devices";
+ homepage = "https://github.com/jesserockz/python-juicenet";
+ license = licenses.mit;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}