2021-06-16 15:18:55 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycoolmasternet-async";
|
2022-04-26 04:21:10 +01:00
|
|
|
version = "0.1.3";
|
2021-06-16 15:18:55 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OnFreund";
|
|
|
|
repo = "pycoolmasternet-async";
|
|
|
|
rev = "v${version}";
|
2022-04-26 04:21:10 +01:00
|
|
|
hash = "sha256-1Xd8OdN8d3g23kQZqihZrNLKoqLCbu5BvAMNitg8aDA=";
|
2021-06-16 15:18:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pycoolmasternet_async" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to control CoolMasterNet HVAC bridges over asyncio";
|
|
|
|
homepage = "https://github.com/OnFreund/pycoolmasternet-async";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|