2021-04-11 15:26:11 +01:00
|
|
|
{ lib
|
|
|
|
, paho-mqtt
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyeconet";
|
2021-04-13 08:20:15 +01:00
|
|
|
version = "0.1.14";
|
2021-04-11 15:26:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-13 08:20:15 +01:00
|
|
|
sha256 = "sha256-x0mkC2k65VrDhv7UavgDUuRWIQoAJMDtA7jNXNUJuVg=";
|
2021-04-11 15:26:11 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|