blob: 19a6eea713194d186344fe71303e0636230199a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, colorlog
, gitpython
, pluggy
, pyelftools
, pytablewriter
, pytestCheckHook
, pyyaml
, ruamel-yaml
, pythonOlder
}:
buildPythonPackage rec {
pname = "riscv-isac";
version = "0.18.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "riscv-software-src";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7CWUyYwzynFq/Qk5SzQB+ljsVVI98kPPDT63Emhqihw=";
};
postPatch = ''
substituteInPlace riscv_isac/requirements.txt \
--replace "pyelftools==0.26" "pyelftools" \
--replace "pytest" ""
'';
propagatedBuildInputs = [
click
colorlog
gitpython
pluggy
pyelftools
pytablewriter
pyyaml
ruamel-yaml
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"riscv_isac"
];
meta = with lib; {
description = "An ISA coverage extraction tool";
mainProgram = "riscv_isac";
homepage = "https://github.com/riscv/riscv-isac";
changelog = "https://github.com/riscv-software-src/riscv-isac/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ genericnerdyusername ];
};
}
|