{luwen,pyluwen,flash,smi}: Update and drop pyluwen_0_1
This commit is contained in:
parent
ba96c32479
commit
31f0cee50d
5 changed files with 552 additions and 1277 deletions
|
@ -8,13 +8,13 @@ with pkgs.python3Packages;
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "tt-flash";
|
||||
version = "unstable-2024-09-27";
|
||||
version = "3.1.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "tt-flash";
|
||||
rev = "4002fee1da7edfcbf09093ba23612caeca071f23";
|
||||
hash = "sha256-O6b/vS/zCjp/mrNzFEylWs0jtwdHY65nwkvn5GFridI=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-t2B1XEOKBKxE2eQiS7pc+EemBWomMgocyk4oRDt0Q78=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,16 +1,24 @@
|
|||
{ pkgs }:
|
||||
|
||||
let
|
||||
|
||||
# Upstream does not vendor a lock file so one has to created manually
|
||||
# `cargo generate-lockfile`
|
||||
version = "0.4.9";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "luwen";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-K68PjccE2fBkU4RvKv8X6jKRPYqsVhKB6jU92aajLgo=";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
luwen = pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "luwen";
|
||||
version = "unstable-2024-09-13";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "luwen";
|
||||
rev = "e4e10e95928f4b73d31ac4f41ea08cd6e3ef5573";
|
||||
sha256 = "sha256-cScaqWAyjDuvy9M2EccMfUHfDq23IWniaKeq+upHzOg=";
|
||||
};
|
||||
inherit version src;
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo_0_2.lock} Cargo.lock
|
||||
|
@ -22,14 +30,7 @@
|
|||
|
||||
pyluwen = pkgs.python3.pkgs.buildPythonPackage rec {
|
||||
pname = "pyluwen";
|
||||
version = "unstable-2024-09-13";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "luwen";
|
||||
rev = "e4e10e95928f4b73d31ac4f41ea08cd6e3ef5573";
|
||||
sha256 = "sha256-cScaqWAyjDuvy9M2EccMfUHfDq23IWniaKeq+upHzOg=";
|
||||
};
|
||||
inherit version src;
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo_0_2.lock} Cargo.lock
|
||||
|
@ -52,39 +53,4 @@
|
|||
"pyluwen"
|
||||
];
|
||||
};
|
||||
|
||||
pyluwen_0_1 = pkgs.python3.pkgs.buildPythonPackage rec {
|
||||
pname = "pyluwen";
|
||||
version = "v0.1.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "luwen";
|
||||
rev = "${version}";
|
||||
sha256 = "sha256-MyOzm3dfEkL7MsVzV51DaO+Op3+QhUzsYCTDsvYsvpk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo_0_1.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
buildAndTestSubdir = "crates/pyluwen";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
|
||||
inherit src postPatch;
|
||||
name = "${pname}-${version}";
|
||||
hash = "sha256-ZXcj/pzQ/tAROdmi2w+AWYBvLSEZFayizxw+BmNDj70=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgs.rustPlatform.cargoSetupHook
|
||||
pkgs.rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyluwen"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue