diff options
Diffstat (limited to 'pkgs/development/python-modules/riscv-config/default.nix')
-rw-r--r-- | pkgs/development/python-modules/riscv-config/default.nix | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/riscv-config/default.nix b/pkgs/development/python-modules/riscv-config/default.nix index de316ad276468..298772e12cc76 100644 --- a/pkgs/development/python-modules/riscv-config/default.nix +++ b/pkgs/development/python-modules/riscv-config/default.nix @@ -1,28 +1,37 @@ -{ lib -, buildPythonPackage -, cerberus -, fetchFromGitHub -, fetchpatch -, pythonOlder -, pyyaml -, ruamel-yaml +{ + lib, + buildPythonPackage, + cerberus, + fetchFromGitHub, + fetchpatch, + pythonOlder, + pyyaml, + ruamel-yaml, + setuptools, + pythonRelaxDepsHook, }: buildPythonPackage rec { pname = "riscv-config"; - version = "3.18.0"; - format = "setuptools"; + version = "3.18.1"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "riscv-software-src"; - repo = pname; + repo = "riscv-config"; rev = "refs/tags/${version}"; - hash = "sha256-3QjPJRFb7X23jZICRx4ZJlnuhe+RN6GcKeypoKtK2bk="; + hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q="; }; - propagatedBuildInputs = [ + pythonRelaxDeps = [ "pyyaml" ]; + + build-system = [ setuptools ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + dependencies = [ cerberus pyyaml ruamel-yaml @@ -31,16 +40,14 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "riscv_config" - ]; + pythonImportsCheck = [ "riscv_config" ]; meta = with lib; { description = "RISC-V configuration validator"; - mainProgram = "riscv-config"; 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; + maintainers = with maintainers; [ genericnerdyusername ]; + mainProgram = "riscv-config"; }; } |