Files
nixpkgs/pkgs/development/python-modules/elmax-api/default.nix
T
2025-08-31 05:52:50 +00:00

49 lines
957 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
pyjwt,
pythonOlder,
websockets,
yarl,
}:
buildPythonPackage rec {
pname = "elmax-api";
version = "0.0.6.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "albertogeniola";
repo = "elmax-api";
tag = "v${version}";
hash = "sha256-jnm1AFnPxZIgD815ZFxV/i9ar4cZfsYJ0+xDpM3hKmg=";
};
build-system = [ setuptools ];
dependencies = [
httpx
pyjwt
websockets
yarl
];
# Test require network access
doCheck = false;
pythonImportsCheck = [ "elmax_api" ];
meta = with lib; {
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 licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}