1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 jsonschema,
7 poetry-core,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "archspec";
14 version = "0.2.3";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "archspec";
21 repo = "archspec";
22 rev = "refs/tags/v${version}";
23 fetchSubmodules = true;
24 hash = "sha256-Ek+rmgvG6DbtxljAEHVac/JzNI1MaLpPu4G8nhaxzg8=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 propagatedBuildInputs = [ click ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 jsonschema
34 ];
35
36 pythonImportsCheck = [ "archspec" ];
37
38 meta = with lib; {
39 description = "Library for detecting, labeling, and reasoning about microarchitectures";
40 mainProgram = "archspec";
41 homepage = "https://archspec.readthedocs.io/";
42 changelog = "https://github.com/archspec/archspec/releases/tag/v${version}";
43 license = with licenses; [
44 mit
45 asl20
46 ];
47 maintainers = with maintainers; [ atila ];
48 };
49}