python312Packages.riscv-config: refactor
This commit is contained in:
parent
5e43e4eb1b
commit
da390f9631
|
@ -6,23 +6,37 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, ruamel-yaml
|
, ruamel-yaml
|
||||||
|
, setuptools
|
||||||
|
, pythonRelaxDepsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "riscv-config";
|
pname = "riscv-config";
|
||||||
version = "3.18.1";
|
version = "3.18.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "riscv-software-src";
|
owner = "riscv-software-src";
|
||||||
repo = pname;
|
repo = "riscv-config";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q=";
|
hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonRelaxDeps = [
|
||||||
|
"pyyaml"
|
||||||
|
];
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
cerberus
|
cerberus
|
||||||
pyyaml
|
pyyaml
|
||||||
ruamel-yaml
|
ruamel-yaml
|
||||||
|
@ -37,10 +51,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "RISC-V configuration validator";
|
description = "RISC-V configuration validator";
|
||||||
mainProgram = "riscv-config";
|
|
||||||
homepage = "https://github.com/riscv/riscv-config";
|
homepage = "https://github.com/riscv/riscv-config";
|
||||||
changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md";
|
||||||
maintainers = with maintainers; [ genericnerdyusername ];
|
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ genericnerdyusername ];
|
||||||
|
mainProgram = "riscv-config";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user