2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, paho-mqtt
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyeconet";
|
2021-04-13 19:44:15 +00:00
|
|
|
version = "0.1.14";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-13 19:44:15 +00:00
|
|
|
sha256 = "sha256-x0mkC2k65VrDhv7UavgDUuRWIQoAJMDtA7jNXNUJuVg=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
paho-mqtt
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require credentials
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyeconet" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to the EcoNet API";
|
|
|
|
homepage = "https://github.com/w1ll1am23/pyeconet";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|