fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cerberus,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pyyaml,
|
|
ruamel-yaml,
|
|
setuptools,
|
|
pythonRelaxDepsHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "riscv-config";
|
|
version = "3.18.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "riscv-software-src";
|
|
repo = "riscv-config";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-eaHi6ezgU8gQYH97gCS2TzEzIP3F4zfn7uiA/To2Gmc=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "pyyaml" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
dependencies = [
|
|
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";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ genericnerdyusername ];
|
|
mainProgram = "riscv-config";
|
|
};
|
|
}
|