Merge pull request #127374 from dotlambda/enocean-init

This commit is contained in:
Sandro 2021-06-18 20:20:03 +02:00 committed by GitHub
commit 1598bfdb4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 1 deletions

View file

@ -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 ];
};
}

View file

@ -225,7 +225,7 @@
"emulated_kasa" = ps: with ps; [ sense-energy ];
"emulated_roku" = ps: with ps; [ ]; # missing inputs: emulated_roku
"enigma2" = ps: with ps; [ openwebifpy ];
"enocean" = ps: with ps; [ ]; # missing inputs: enocean
"enocean" = ps: with ps; [ enocean ];
"enphase_envoy" = ps: with ps; [ envoy-reader ];
"entur_public_transport" = ps: with ps; [ ]; # missing inputs: enturclient
"environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada

View file

@ -372,6 +372,7 @@ in with py.pkgs; buildPythonApplication rec {
"emonitor"
"emulated_hue"
"emulated_kasa"
"enocean"
"enphase_envoy"
"epson"
"esphome"

View file

@ -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 {