summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-24 00:10:16 +0200
committerRobert Schütz <dev@schuetz-co.de>2021-06-27 14:28:22 +0200
commitcb6b93e29963405ce41d3fd3734ffe31f9c0c8c4 (patch)
tree50e789b6e1956b6042301c7f72b9350e89c3c5a0
parent630de311e4eed9e88e0577041f08a4be60994100 (diff)
downloadnixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.tar
nixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.tar.gz
nixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.tar.bz2
nixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.tar.lz
nixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.tar.xz
nixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.tar.zst
nixpkgs-cb6b93e29963405ce41d3fd3734ffe31f9c0c8c4.zip
python3Packages.python-juicenet: init at 1.0.2
-rw-r--r--pkgs/development/python-modules/python-juicenet/default.nix33
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 35 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 00000000000..1547c891461
--- /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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 72af595d3c1..e4cd9adff94 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5351,6 +5351,8 @@ in {
 
   python-izone = callPackage ../development/python-modules/python-izone { };
 
+  python-juicenet = callPackage ../development/python-modules/python-juicenet { };
+
   python-openems = callPackage ../development/python-modules/python-openems { };
 
   python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };