Files
nixpkgs/pkgs/development/python-modules/pyeconet/default.nix
2025-02-27 06:25:50 +00:00

47 lines
906 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyeconet";
version = "0.1.28";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "w1ll1am23";
repo = "pyeconet";
tag = "v${version}";
hash = "sha256-xGjQlOiA2SzSuhdD/jUYYtL8EiYj4jaIp85JqcGiaUI=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "paho-mqtt" ];
dependencies = [
paho-mqtt
aiohttp
];
# Tests require credentials
doCheck = false;
pythonImportsCheck = [ "pyeconet" ];
meta = {
description = "Python interface to the EcoNet API";
homepage = "https://github.com/w1ll1am23/pyeconet";
changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}