2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2022-12-17 10:02:37 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, paho-mqtt
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2022-12-17 10:02:37 +00:00
|
|
|
, setuptools
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyeconet";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.1.20";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "pyproject";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "w1ll1am23";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-x94V6qdDHgeeFLAuciC7mHMWbC0d3AtS0aQNaZOCajI=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|