depot/third_party/nixpkgs/pkgs/development/python-modules/lmcloud/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

54 lines
1,012 B
Nix

{
lib,
authlib,
bleak,
buildPythonPackage,
fetchFromGitHub,
httpx,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
syrupy,
websockets,
}:
buildPythonPackage rec {
pname = "lmcloud";
version = "1.2.3";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "zweckj";
repo = "pylamarzocco";
rev = "refs/tags/v.${version}";
hash = "sha256-iRxn4xAP5b/2byeWbYm6mQwAu1TUmJgOVEqm/bZT9Xw=";
};
build-system = [ setuptools ];
dependencies = [
authlib
bleak
httpx
websockets
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "lmcloud" ];
meta = with lib; {
description = "Library to interface with La Marzocco's cloud";
homepage = "https://github.com/zweckj/pylamarzocco";
changelog = "https://github.com/zweckj/pylamarzocco/releases/tag/v.${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}