Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / archspec / default.nix
blob1ae73f71f325b13361369712b9b12bfb4c5f73c1
1 { lib
2 , buildPythonPackage
3 , click
4 , fetchFromGitHub
5 , jsonschema
6 , poetry-core
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "archspec";
13   version = "0.2.3";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "archspec";
20     repo = "archspec";
21     rev = "refs/tags/v${version}";
22     fetchSubmodules = true;
23     hash = "sha256-Ek+rmgvG6DbtxljAEHVac/JzNI1MaLpPu4G8nhaxzg8=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     click
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36     jsonschema
37   ];
39   pythonImportsCheck = [
40     "archspec"
41   ];
43   meta = with lib; {
44     description = "Library for detecting, labeling, and reasoning about microarchitectures";
45     mainProgram = "archspec";
46     homepage = "https://archspec.readthedocs.io/";
47     changelog = "https://github.com/archspec/archspec/releases/tag/v${version}";
48     license = with licenses; [ mit asl20 ];
49     maintainers = with maintainers; [ atila ];
50   };