Files
nixpkgs/pkgs/development/python-modules/elmax/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

50 lines
967 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
poetry-core,
pythonOlder,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
yarl,
}:
buildPythonPackage rec {
pname = "elmax";
version = "0.1.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-elmax";
rev = version;
hash = "sha256-EcYEpYv+EwwEfW8Sy7aQjFAPpmsA6qVbmlwrPdxdnEw=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
httpx
yarl
];
nativeCheckInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [ "elmax" ];
meta = {
description = "Python API client for the Elmax Cloud services";
mainProgram = "poetry-template";
homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}