2025-10-07 09:53:36 +02:00
|
|
|
{
|
|
|
|
|
inputs = {
|
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-05 09:23:43 +01:00
|
|
|
outputs =
|
|
|
|
|
inputs:
|
2025-10-07 09:53:36 +02:00
|
|
|
inputs.flake-utils.lib.eachDefaultSystem (
|
2025-12-05 09:23:43 +01:00
|
|
|
system:
|
|
|
|
|
let
|
2025-10-07 09:53:36 +02:00
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
|
|
|
|
|
|
|
|
lib = pkgs.lib;
|
|
|
|
|
|
|
|
|
|
inherit (pkgs) python3Packages;
|
|
|
|
|
|
|
|
|
|
meshcore = python3Packages.buildPythonPackage rec {
|
|
|
|
|
pname = "meshcore";
|
2026-04-09 11:47:47 +02:00
|
|
|
version = "2.3.6";
|
2025-10-07 09:53:36 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
2025-12-05 11:47:04 +01:00
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
|
inherit pname version;
|
2026-04-09 11:47:47 +02:00
|
|
|
sha256 = "sha256-l9/wDgRfzPSZGIt+tIUITs/mf/AeEIMDN9DXAbMSzSs=";
|
2025-10-07 09:53:36 +02:00
|
|
|
};
|
|
|
|
|
|
2025-12-05 09:23:43 +01:00
|
|
|
build-system = [ python3Packages.hatchling ];
|
2025-10-07 09:53:36 +02:00
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
|
python3Packages.bleak
|
|
|
|
|
python3Packages.pycayennelpp
|
2026-02-03 15:51:26 -04:00
|
|
|
python3Packages.pyserial-asyncio-fast
|
2026-03-05 13:58:40 -04:00
|
|
|
python3Packages.pycryptodome
|
2025-10-07 09:53:36 +02:00
|
|
|
];
|
|
|
|
|
|
2025-12-05 09:23:43 +01:00
|
|
|
pythonImportsCheck = [ "meshcore" ];
|
2025-10-07 09:53:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pyproject = lib.importTOML ./pyproject.toml;
|
|
|
|
|
version = pyproject.project.version;
|
2025-12-05 09:23:43 +01:00
|
|
|
in
|
|
|
|
|
{
|
2025-10-07 09:53:36 +02:00
|
|
|
packages.meshcore-cli = python3Packages.buildPythonPackage {
|
|
|
|
|
pname = "meshcore-cli";
|
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
python3Packages.hatchling
|
|
|
|
|
python3Packages.setuptools
|
|
|
|
|
python3Packages.wheel
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
meshcore
|
|
|
|
|
python3Packages.click
|
|
|
|
|
python3Packages.prompt_toolkit
|
|
|
|
|
python3Packages.pyserial
|
|
|
|
|
python3Packages.requests
|
2025-12-05 09:23:43 +01:00
|
|
|
python3Packages.pycryptodome
|
2025-10-07 09:53:36 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|