2022-06-14 16:29:56 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2023-01-07 23:51:47 +00:00
|
|
|
click,
|
2022-06-14 16:29:56 +00:00
|
|
|
fetchFromGitHub,
|
2023-01-07 23:51:47 +00:00
|
|
|
jsonschema,
|
2022-06-14 16:29:56 +00:00
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
2023-01-07 23:51:47 +00:00
|
|
|
pythonOlder,
|
2022-06-14 16:29:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "archspec";
|
2024-06-09 08:24:15 +00:00
|
|
|
version = "0.2.4";
|
2024-01-06 07:58:59 +00:00
|
|
|
pyproject = true;
|
2022-06-14 16:29:56 +00:00
|
|
|
|
2023-01-07 23:51:47 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-06-14 16:29:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-01-06 07:58:59 +00:00
|
|
|
owner = "archspec";
|
|
|
|
repo = "archspec";
|
2023-01-07 23:51:47 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-06-14 16:29:56 +00:00
|
|
|
fetchSubmodules = true;
|
2024-06-09 08:24:15 +00:00
|
|
|
hash = "sha256-Xg1XdmKk2b6fqzOdedU3SGIgy65CjExxDByt/Xvmr24=";
|
2022-06-14 16:29:56 +00:00
|
|
|
};
|
|
|
|
|
2024-06-09 08:24:15 +00:00
|
|
|
build-system = [ poetry-core ];
|
2022-06-14 16:29:56 +00:00
|
|
|
|
2024-06-09 08:24:15 +00:00
|
|
|
dependecies = [ click ];
|
2023-01-07 23:49:28 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-07 23:49:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
jsonschema
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "archspec" ];
|
2022-06-14 16:29:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-07 23:49:28 +00:00
|
|
|
description = "Library for detecting, labeling, and reasoning about microarchitectures";
|
|
|
|
homepage = "https://archspec.readthedocs.io/";
|
2024-01-06 07:58:59 +00:00
|
|
|
changelog = "https://github.com/archspec/archspec/releases/tag/v${version}";
|
2022-06-14 16:29:56 +00:00
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
asl20
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [ atila ];
|
2024-06-09 08:24:15 +00:00
|
|
|
mainProgram = "archspec";
|
2022-06-14 16:29:56 +00:00
|
|
|
};
|
|
|
|
}
|