1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 hatchling,
8
9 # dependencies
10 bleak,
11 pycayennelpp,
12 pyserial-asyncio,
13}:
14
15buildPythonPackage rec {
16 pname = "meshcore";
17 version = "2.1.7";
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-VEkpS6FTs7mCjhqFRL6+AisR0IKYrOWbx6irGfsucEc=";
23 };
24
25 build-system = [ hatchling ];
26
27 dependencies = [
28 bleak
29 pycayennelpp
30 pyserial-asyncio
31 ];
32
33 pythonImportsCheck = [ "meshcore" ];
34
35 meta = with lib; {
36 description = "Python library for communicating with meshcore companion radios";
37 homepage = "https://github.com/meshcore-dev/meshcore_py";
38 license = licenses.mit;
39 maintainers = [ maintainers.haylin ];
40 };
41}