2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-02-09 11:40:11 +00:00
|
|
|
, cerberus
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, pythonOlder
|
2023-02-09 11:40:11 +00:00
|
|
|
, pyyaml
|
|
|
|
, ruamel-yaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "riscv-config";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.17.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "riscv-software-src";
|
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-dMs900w5sXggqxU+2W8qKrKjGpyrXhA2QEbXQeaKZTs=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cerberus
|
|
|
|
pyyaml
|
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"riscv_config"
|
|
|
|
];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "RISC-V configuration validator";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/riscv/riscv-config";
|
|
|
|
changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md";
|
2023-02-09 11:40:11 +00:00
|
|
|
maintainers = with maintainers; [ genericnerdyusername ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|