mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
fix: get meshcore_ppy from GitHub
This commit is contained in:
parent
20d2900dd5
commit
f585dd79ae
1 changed files with 15 additions and 10 deletions
25
flake.nix
25
flake.nix
|
|
@ -4,9 +4,11 @@
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs =
|
||||||
|
inputs:
|
||||||
inputs.flake-utils.lib.eachDefaultSystem (
|
inputs.flake-utils.lib.eachDefaultSystem (
|
||||||
system: let
|
system:
|
||||||
|
let
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
|
|
@ -15,15 +17,17 @@
|
||||||
|
|
||||||
meshcore = python3Packages.buildPythonPackage rec {
|
meshcore = python3Packages.buildPythonPackage rec {
|
||||||
pname = "meshcore";
|
pname = "meshcore";
|
||||||
version = "2.2.2";
|
version = "2.2.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
src = pkgs.fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "meshcore-dev";
|
||||||
sha256 = "sha256-vn/vF4avMDwDLL0EMVrrMWkZrZ1GTiUxGyTBOtKvG1I=";
|
repo = "meshcore_py";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-Qjwi7JrSyk5wWM63OdFykB850+hquWDD9p4fZFfbI70=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [python3Packages.hatchling];
|
build-system = [ python3Packages.hatchling ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
python3Packages.bleak
|
python3Packages.bleak
|
||||||
|
|
@ -31,12 +35,13 @@
|
||||||
python3Packages.pyserial-asyncio
|
python3Packages.pyserial-asyncio
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = ["meshcore"];
|
pythonImportsCheck = [ "meshcore" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
pyproject = lib.importTOML ./pyproject.toml;
|
pyproject = lib.importTOML ./pyproject.toml;
|
||||||
version = pyproject.project.version;
|
version = pyproject.project.version;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
packages.meshcore-cli = python3Packages.buildPythonPackage {
|
packages.meshcore-cli = python3Packages.buildPythonPackage {
|
||||||
pname = "meshcore-cli";
|
pname = "meshcore-cli";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
@ -57,7 +62,7 @@
|
||||||
python3Packages.prompt_toolkit
|
python3Packages.prompt_toolkit
|
||||||
python3Packages.pyserial
|
python3Packages.pyserial
|
||||||
python3Packages.requests
|
python3Packages.requests
|
||||||
python3Packages.pycryptodome
|
python3Packages.pycryptodome
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue