From 215c16d88e620b997c482b05d610fe0f4e3371e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 18 Jun 2021 17:59:04 +0200 Subject: [PATCH] python3Packages.enocean: init at 0.60.1 --- .../python-modules/enocean/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/enocean/default.nix diff --git a/pkgs/development/python-modules/enocean/default.nix b/pkgs/development/python-modules/enocean/default.nix new file mode 100644 index 000000000000..365d6c94ef28 --- /dev/null +++ b/pkgs/development/python-modules/enocean/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, beautifulsoup4 +, enum-compat +, pyserial +, nose +}: + +buildPythonPackage rec { + pname = "enocean"; + version = "0.60.1"; + + src = fetchFromGitHub { + owner = "kipe"; + repo = "enocean"; + rev = version; + sha256 = "0cbcvvy3qaqv8925z608qmkc1l914crzw79krwrz2vpm2fyribab"; + }; + + propagatedBuildInputs = [ + beautifulsoup4 + enum-compat + pyserial + ]; + + checkInputs = [ + nose + ]; + + checkPhase = '' + runHook preCheck + + nosetests + + runHook postCheck + ''; + + pythonImportsCheck = [ + "enocean.communicators" + "enocean.protocol.packet" + "enocean.utils" + ]; + + meta = with lib; { + description = "EnOcean serial protocol implementation"; + homepage = "https://github.com/kipe/enocean"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 11534d3970ec..c240371cb325 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2269,6 +2269,8 @@ in { enamlx = callPackage ../development/python-modules/enamlx { }; + enocean = callPackage ../development/python-modules/enocean { }; + enrich = callPackage ../development/python-modules/enrich { }; entrance = callPackage ../development/python-modules/entrance {