mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
33 lines
628 B
Nix
33 lines
628 B
Nix
{ lib
|
|
, paho-mqtt
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyeconet";
|
|
version = "0.1.14";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-x0mkC2k65VrDhv7UavgDUuRWIQoAJMDtA7jNXNUJuVg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|