1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, click
6, six
7, pytestCheckHook
8, jsonschema
9}:
10
11buildPythonPackage rec {
12 pname = "archspec";
13 version = "0.1.4";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = pname;
18 repo = pname;
19 rev = "v${version}";
20 fetchSubmodules = true;
21 sha256 = "sha256-ScigEpYNArveqi5tlqiA7LwsVs2RkjT+GChxhSy/ndw=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25 propagatedBuildInputs = [ click six ];
26 checkInputs = [ pytestCheckHook jsonschema ];
27
28 pythonImportsCheck = [ "archspec" ];
29
30 meta = with lib; {
31 description = "A library for detecting, labeling, and reasoning about microarchitectures";
32 homepage = "https://archspec.readthedocs.io/en/latest/";
33 license = with licenses; [ mit asl20 ];
34 maintainers = with maintainers; [ atila ];
35 };
36}