42 lines
847 B
Nix
42 lines
847 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
paho-mqtt,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyephember2";
|
|
version = "0.4.12";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roberty99";
|
|
repo = "pyephember2";
|
|
tag = version;
|
|
hash = "sha256-R63Ts+1620QQOFF8o2/6CFNZi5jAeWTQkElgqZhNA7c=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
paho-mqtt
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyephember2" ];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/roberty99/pyephember2/releases/tag/${src.tag}";
|
|
description = "Python library to work with ember from EPH Controls";
|
|
homepage = "https://github.com/ttroy50/pyephember";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|