python3Packages.tt-flash: cleanup (#517344)
This commit is contained in:
@@ -51,6 +51,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
mainProgram = "tt-smi";
|
||||
description = "Tenstorrent console based hardware information program";
|
||||
homepage = "https://github.com/tenstorrent/tt-smi";
|
||||
changelog = "https://github.com/tenstorrent/tt-smi/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
};
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
runCommand,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
|
||||
maturin,
|
||||
protobuf_30,
|
||||
}:
|
||||
@@ -21,11 +21,11 @@ buildPythonPackage (finalAttrs: {
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) src;
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-QBGXbRiBk4WIQFopq1OccmUHgx5GzR/PKhMH4Ie+fyg=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/bind/${finalAttrs.pname}";
|
||||
sourceRoot = "${finalAttrs.src.name}/bind/pyluwen";
|
||||
|
||||
prePatch = ''
|
||||
chmod -R u+w ../../
|
||||
@@ -49,6 +49,7 @@ buildPythonPackage (finalAttrs: {
|
||||
meta = {
|
||||
description = "Tenstorrent system interface library";
|
||||
homepage = "https://github.com/tenstorrent/luwen";
|
||||
changelog = "https://github.com/tenstorrent/luwen/releases/tag/${finalAttrs.src.tag}";
|
||||
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
};
|
||||
|
||||
@@ -2,12 +2,18 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
pyyaml,
|
||||
tabulate,
|
||||
pyluwen,
|
||||
tt-tools-common,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "tt-flash";
|
||||
@@ -26,6 +32,10 @@ buildPythonPackage (finalAttrs: {
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pyyaml"
|
||||
"tabulate"
|
||||
];
|
||||
dependencies = [
|
||||
tabulate
|
||||
pyyaml
|
||||
@@ -34,14 +44,16 @@ buildPythonPackage (finalAttrs: {
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "tt_flash" ];
|
||||
pythonRelaxDeps = [
|
||||
"pyyaml"
|
||||
"tabulate"
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Tenstorrent Firmware Update Utility";
|
||||
homepage = "https://tenstorrent.com";
|
||||
downloadPage = "https://github.com/tenstorrent/tt-flash";
|
||||
changelog = "https://github.com/tenstorrent/tt-flash/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user