59 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
2025-09-06 19:03:20 -04:00
fetchgit,
python3Packages,
2025-08-17 20:48:35 -04:00
acpica-tools,
ethtool,
libdisplay-info,
}:
2025-09-06 19:03:20 -04:00
2025-08-17 11:43:40 -04:00
let
version = "0.2.7";
in
2025-09-06 19:03:20 -04:00
python3Packages.buildPythonApplication {
2025-08-17 11:43:40 -04:00
pname = "amd-debug-tools";
2025-09-06 19:03:20 -04:00
inherit version;
2025-08-17 11:43:40 -04:00
pyproject = true;
2025-09-06 19:03:20 -04:00
build-system = with python3Packages; [
2025-08-17 11:43:40 -04:00
setuptools
setuptools-git-versioning
setuptools-git
pyudev
];
2025-09-06 19:03:20 -04:00
dependencies = with python3Packages; [
cysystemd
2025-08-17 11:43:40 -04:00
jinja2
matplotlib
2025-08-17 20:32:20 -04:00
pandas
pyudev
2025-08-17 11:43:40 -04:00
seaborn
2025-08-17 20:32:20 -04:00
tabulate
2025-08-17 20:48:35 -04:00
acpica-tools
ethtool
libdisplay-info
2025-08-17 11:43:40 -04:00
];
2025-09-06 19:03:20 -04:00
src = fetchgit {
2025-08-17 11:43:40 -04:00
url = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git";
tag = version;
2025-09-06 19:03:20 -04:00
hash = "sha256-6X9cUKN0BkkKcYGU+YJYCGT+l5iUZDN+D8Fqq/ns98Q=";
2025-08-17 11:43:40 -04:00
leaveDotGit = true;
};
2025-08-17 11:43:40 -04:00
2025-09-06 19:03:20 -04:00
disabled = python3Packages.pythonOlder "3.7";
2025-08-17 11:43:40 -04:00
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
'';
2025-08-17 11:43:40 -04:00
2025-09-06 19:03:20 -04:00
pythonImportsCheck = [ "amd_debug" ];
meta = {
2025-08-17 11:43:40 -04:00
description = "Debug tools for AMD zen systems";
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/";
2025-09-06 19:03:20 -04:00
license = lib.licenses.mit;
platforms = lib.platforms.linux;
2025-08-17 11:43:40 -04:00
};
}