Files
nixpkgs/pkgs/development/python-modules/meshcore/default.nix
2026-10-28 01:39:54 +00:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
bleak,
pycayennelpp,
pyserial-asyncio-fast,
pycryptodome,
# tests
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "meshcore";
version = "2.3.17";
pyproject = true;
src = fetchFromGitHub {
owner = "meshcore-dev";
repo = "meshcore_py";
tag = "v${finalAttrs.version}";
hash = "sha256-Hhl012J64WCSs2/rVI6vNwwQwj/+j5wudtzhKml7bHg=";
};
build-system = [ hatchling ];
dependencies = [
bleak
pycayennelpp
pyserial-asyncio-fast
pycryptodome
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
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 ];
};
})