b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
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.13.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "riscv-software-src";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-tMV5mRqOLURkr8HQN1yvq5Cf3yz2NRBY6uaaxNKCy2c=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|