2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, paho-mqtt
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyeconet";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.1.15";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-zxD2sjKWB/bmxwpVFgkKTngMhr4bVuW+qkSt+pbxqPY=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
paho-mqtt
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require credentials
|
|
|
|
doCheck = false;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyeconet"
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to the EcoNet API";
|
|
|
|
homepage = "https://github.com/w1ll1am23/pyeconet";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|