python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / riscv-isac / default.nix
blob5c6e305715eed3ef6e4472645b15a3c4f62631fd
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   click,
6   colorlog,
7   gitpython,
8   pluggy,
9   pyelftools,
10   pytablewriter,
11   pytestCheckHook,
12   pyyaml,
13   ruamel-yaml,
14   pythonOlder,
17 buildPythonPackage rec {
18   pname = "riscv-isac";
19   version = "0.18.0";
20   format = "setuptools";
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitHub {
25     owner = "riscv-software-src";
26     repo = pname;
27     rev = "refs/tags/${version}";
28     hash = "sha256-7CWUyYwzynFq/Qk5SzQB+ljsVVI98kPPDT63Emhqihw=";
29   };
31   postPatch = ''
32     substituteInPlace riscv_isac/requirements.txt \
33       --replace "pyelftools==0.26" "pyelftools" \
34       --replace "pytest" ""
35   '';
37   propagatedBuildInputs = [
38     click
39     colorlog
40     gitpython
41     pluggy
42     pyelftools
43     pytablewriter
44     pyyaml
45     ruamel-yaml
46   ];
48   nativeCheckInputs = [ pytestCheckHook ];
50   pythonImportsCheck = [ "riscv_isac" ];
52   meta = with lib; {
53     description = "ISA coverage extraction tool";
54     mainProgram = "riscv_isac";
55     homepage = "https://github.com/riscv/riscv-isac";
56     changelog = "https://github.com/riscv-software-src/riscv-isac/blob/${version}/CHANGELOG.md";
57     license = licenses.bsd3;
58     maintainers = with maintainers; [ genericnerdyusername ];
59   };