mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
52 lines
854 B
Nix
52 lines
854 B
Nix
{ 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 ];
|
|
};
|
|
}
|