forked from mirrors/nixpkgs
Merge pull request #127374 from dotlambda/enocean-init
This commit is contained in:
commit
1598bfdb4b
51
pkgs/development/python-modules/enocean/default.nix
Normal file
51
pkgs/development/python-modules/enocean/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -372,6 +372,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"emonitor"
|
||||
"emulated_hue"
|
||||
"emulated_kasa"
|
||||
"enocean"
|
||||
"enphase_envoy"
|
||||
"epson"
|
||||
"esphome"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue