587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cerberus,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pythonOlder,
|
|
pyyaml,
|
|
ruamel-yaml,
|
|
setuptools,
|
|
pythonRelaxDepsHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "riscv-config";
|
|
version = "3.18.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "riscv-software-src";
|
|
repo = "riscv-config";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|