e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
45 lines
920 B
Nix
45 lines
920 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cerberus
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, pythonOlder
|
|
, pyyaml
|
|
, ruamel-yaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "riscv-config";
|
|
version = "3.14.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "riscv-software-src";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-a6rTKCLAHrdfP/M8Q8YYSck4q+7tmospMFcCdIdNyy0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cerberus
|
|
pyyaml
|
|
ruamel-yaml
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"riscv_config"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "RISC-V configuration validator";
|
|
homepage = "https://github.com/riscv/riscv-config";
|
|
changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md";
|
|
maintainers = with maintainers; [ genericnerdyusername ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|