fix: get meshcore_ppy from GitHub

This commit is contained in:
Jorrit van der Heide 2025-12-05 09:23:43 +01:00
parent 20d2900dd5
commit f585dd79ae

View file

@ -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,12 +17,14 @@
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 ];
@ -36,7 +40,8 @@
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;