2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-01-11 07:51:40 +00:00
|
|
|
, click
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchFromGitHub
|
2023-01-11 07:51:40 +00:00
|
|
|
, jsonschema
|
2022-06-26 10:26:21 +00:00
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "archspec";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.2.2";
|
|
|
|
pyproject = true;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-01-13 08:15:51 +00:00
|
|
|
owner = "archspec";
|
|
|
|
repo = "archspec";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
fetchSubmodules = true;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-6+1TiXCBqW8YH/ggZhRcZV/Tyh8Ku3ocwxf9z9KrCZY=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
pytestCheckHook
|
|
|
|
jsonschema
|
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"archspec"
|
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
description = "Library for detecting, labeling, and reasoning about microarchitectures";
|
|
|
|
homepage = "https://archspec.readthedocs.io/";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/archspec/archspec/releases/tag/v${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ atila ];
|
|
|
|
};
|
|
|
|
}
|