Files
nixpkgs/pkgs/development/python-modules/meshcore/default.nix
T
2026-03-02 15:43:43 +01:00

42 lines
920 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
# dependencies
bleak,
pycayennelpp,
pyserial-asyncio-fast,
}:
buildPythonPackage (finalAttrs: {
pname = "meshcore";
version = "2.2.8";
pyproject = true;
src = fetchFromGitHub {
owner = "meshcore-dev";
repo = "meshcore_py";
tag = "v${finalAttrs.version}";
hash = "sha256-S3hyA2TsgEHwB0gv5xFMTbwnAoGbceq0C5+8MBedD70=";
};
build-system = [ hatchling ];
dependencies = [
bleak
pycayennelpp
pyserial-asyncio-fast
];
pythonImportsCheck = [ "meshcore" ];
meta = {
description = "Python library for communicating with meshcore companion radios";
homepage = "https://github.com/meshcore-dev/meshcore_py";
changelog = "https://github.com/meshcore-dev/meshcore_py/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ haylin ];
};
})