Files
nixpkgs/pkgs/development/python-modules/envoy-reader/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

63 lines
1.1 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
envoy-utils,
fetchFromGitHub,
setuptools,
httpx,
pyjwt,
pytest-asyncio,
pytestCheckHook,
pytest-raises,
pythonOlder,
respx,
}:
buildPythonPackage rec {
pname = "envoy-reader";
version = "0.21.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jesserizzo";
repo = "envoy_reader";
rev = version;
hash = "sha256-aIpZ4ln4L57HwK8H0FqsyNnXosnAp3ingrJI6/MPS90=";
};
build-system = [ setuptools ];
dependencies = [
beautifulsoup4
envoy-utils
httpx
pyjwt
];
nativeCheckInputs = [
pytest-raises
pytest-asyncio
pytestCheckHook
respx
];
pythonRelaxDeps = [ "pyjwt" ];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "pytest-runner>=5.2" ""
'';
pythonImportsCheck = [ "envoy_reader" ];
meta = {
description = "Python module to read from Enphase Envoy units";
homepage = "https://github.com/jesserizzo/envoy_reader";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}