at master 1.0 kB view raw
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.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "archspec"; 21 repo = "archspec"; 22 tag = "v${version}"; 23 fetchSubmodules = true; 24 hash = "sha256-BfjFNwfNyT/da0Z5/bBdbv+RT8lqM0s2q64cz79vuF0="; 25 }; 26 27 build-system = [ poetry-core ]; 28 29 dependecies = [ 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 homepage = "https://archspec.readthedocs.io/"; 41 changelog = "https://github.com/archspec/archspec/releases/tag/${src.tag}"; 42 license = with licenses; [ 43 mit 44 asl20 45 ]; 46 maintainers = with maintainers; [ atila ]; 47 mainProgram = "archspec"; 48 }; 49}