1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00

python3Packages.enocean: init at 0.60.1

This commit is contained in:
Robert Schütz 2021-06-18 17:59:04 +02:00
parent 410496d0f3
commit 215c16d88e
2 changed files with 53 additions and 0 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

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