Merge pull request #128193 from dotlambda/upb-lib-init

home-assistant: support upb component
This commit is contained in:
Fabian Affolter
2021-06-26 17:28:18 +02:00
committed by GitHub
4 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pyserial-asyncio
, pytz
}:
buildPythonPackage rec {
pname = "upb-lib";
version = "0.4.12";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "e668055d9c389aefd09203afb96a950a320095f225ef0a1aa611e592db92a71b";
};
propagatedBuildInputs = [
pyserial-asyncio
pytz
];
# no tests on PyPI, no tags on GitHub
doCheck = false;
pythonImportsCheck = [ "upb_lib" ];
meta = with lib; {
description = "Library for interacting with UPB PIM";
homepage = "https://github.com/gwww/upb-lib";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}