1{ lib 2, buildPythonPackage 3, cerberus 4, fetchFromGitHub 5, fetchpatch 6, pythonOlder 7, pyyaml 8, ruamel-yaml 9}: 10 11buildPythonPackage rec { 12 pname = "riscv-config"; 13 version = "3.13.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "riscv-software-src"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-tMV5mRqOLURkr8HQN1yvq5Cf3yz2NRBY6uaaxNKCy2c="; 23 }; 24 25 propagatedBuildInputs = [ 26 cerberus 27 pyyaml 28 ruamel-yaml 29 ]; 30 31 # Module has no tests 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "riscv_config" 36 ]; 37 38 meta = with lib; { 39 description = "RISC-V configuration validator"; 40 homepage = "https://github.com/riscv/riscv-config"; 41 changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md"; 42 maintainers = with maintainers; [ genericnerdyusername ]; 43 license = licenses.bsd3; 44 }; 45}