nixpkgs/pkgs/development/python-modules/archspec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1014 B
Nix
Raw Normal View History

2022-06-14 16:29:56 +00:00
{
lib,
buildPythonPackage,
click,
2022-06-14 16:29:56 +00:00
fetchFromGitHub,
jsonschema,
2022-06-14 16:29:56 +00:00
poetry-core,
pytestCheckHook,
pythonOlder,
2022-06-14 16:29:56 +00:00
}:
buildPythonPackage rec {
pname = "archspec";
version = "0.2.4";
pyproject = true;
2022-06-14 16:29:56 +00:00
disabled = pythonOlder "3.7";
2022-06-14 16:29:56 +00:00
src = fetchFromGitHub {
owner = "archspec";
repo = "archspec";
rev = "refs/tags/v${version}";
2022-06-14 16:29:56 +00:00
fetchSubmodules = true;
hash = "sha256-Xg1XdmKk2b6fqzOdedU3SGIgy65CjExxDByt/Xvmr24=";
2022-06-14 16:29:56 +00:00
};
build-system = [ poetry-core ];
2022-06-14 16:29:56 +00:00
dependecies = [ click ];
nativeCheckInputs = [
pytestCheckHook
jsonschema
];
pythonImportsCheck = [ "archspec" ];
2022-06-14 16:29:56 +00:00
meta = with lib; {
description = "Library for detecting, labeling, and reasoning about microarchitectures";
homepage = "https://archspec.readthedocs.io/";
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 ];
mainProgram = "archspec";
2022-06-14 16:29:56 +00:00
};
}