Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / riscv-isac / default.nix
blob19a6eea713194d186344fe71303e0636230199a4
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , click
5 , colorlog
6 , gitpython
7 , pluggy
8 , pyelftools
9 , pytablewriter
10 , pytestCheckHook
11 , pyyaml
12 , ruamel-yaml
13 , pythonOlder
16 buildPythonPackage rec {
17   pname = "riscv-isac";
18   version = "0.18.0";
19   format = "setuptools";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "riscv-software-src";
25     repo = pname;
26     rev = "refs/tags/${version}";
27     hash = "sha256-7CWUyYwzynFq/Qk5SzQB+ljsVVI98kPPDT63Emhqihw=";
28   };
30   postPatch = ''
31     substituteInPlace riscv_isac/requirements.txt \
32       --replace "pyelftools==0.26" "pyelftools" \
33       --replace "pytest" ""
34   '';
36   propagatedBuildInputs = [
37     click
38     colorlog
39     gitpython
40     pluggy
41     pyelftools
42     pytablewriter
43     pyyaml
44     ruamel-yaml
45   ];
47   nativeCheckInputs = [
48     pytestCheckHook
49   ];
51   pythonImportsCheck = [
52     "riscv_isac"
53   ];
55   meta = with lib; {
56     description = "An ISA coverage extraction tool";
57     mainProgram = "riscv_isac";
58     homepage = "https://github.com/riscv/riscv-isac";
59     changelog = "https://github.com/riscv-software-src/riscv-isac/blob/${version}/CHANGELOG.md";
60     license = licenses.bsd3;
61     maintainers = with maintainers; [ genericnerdyusername ];
62   };