depot/third_party/nixpkgs/pkgs/development/python-modules/pyeconet/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

39 lines
707 B
Nix

{ lib
, paho-mqtt
, buildPythonPackage
, fetchPypi
, aiohttp
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyeconet";
version = "0.1.15";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-zxD2sjKWB/bmxwpVFgkKTngMhr4bVuW+qkSt+pbxqPY=";
};
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 ];
};
}