nixpkgs/pkgs/development/python-modules/elmax-api/default.nix
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

45 lines
910 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
pyjwt,
websockets,
yarl,
}:
buildPythonPackage rec {
pname = "elmax-api";
version = "0.0.6.4rc0";
pyproject = true;
src = fetchFromGitHub {
owner = "albertogeniola";
repo = "elmax-api";
tag = "v${version}";
hash = "sha256-BYVfP8B+p4J4gW+64xh9bT9sDcu/lk0R+MvLsYLwRfQ=";
};
build-system = [ setuptools ];
dependencies = [
httpx
pyjwt
websockets
yarl
];
# Test require network access
doCheck = false;
pythonImportsCheck = [ "elmax_api" ];
meta = {
description = "Python library for interacting with the Elmax cloud";
homepage = "https://github.com/albertogeniola/elmax-api";
changelog = "https://github.com/albertogeniola/elmax-api/releases/tag/v${version}";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}