From 5e43e4eb1b49ba33f1ca705abcd816bbd345795c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 11 Apr 2024 16:11:47 +0000 Subject: [PATCH 1/3] python312Packages.riscv-config: 3.18.0 -> 3.18.1 --- pkgs/development/python-modules/riscv-config/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/riscv-config/default.nix b/pkgs/development/python-modules/riscv-config/default.nix index de316ad27646..3ffc742df089 100644 --- a/pkgs/development/python-modules/riscv-config/default.nix +++ b/pkgs/development/python-modules/riscv-config/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "riscv-config"; - version = "3.18.0"; + version = "3.18.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "riscv-software-src"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-3QjPJRFb7X23jZICRx4ZJlnuhe+RN6GcKeypoKtK2bk="; + hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q="; }; propagatedBuildInputs = [ From da390f9631685ac730670fe18401f64778284d5a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 14:33:50 +0200 Subject: [PATCH 2/3] python312Packages.riscv-config: refactor --- .../python-modules/riscv-config/default.nix | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/riscv-config/default.nix b/pkgs/development/python-modules/riscv-config/default.nix index 3ffc742df089..0421a337eae9 100644 --- a/pkgs/development/python-modules/riscv-config/default.nix +++ b/pkgs/development/python-modules/riscv-config/default.nix @@ -6,23 +6,37 @@ , pythonOlder , pyyaml , ruamel-yaml +, setuptools +, pythonRelaxDepsHook }: buildPythonPackage rec { pname = "riscv-config"; version = "3.18.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "riscv-software-src"; - repo = pname; + repo = "riscv-config"; rev = "refs/tags/${version}"; hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q="; }; - propagatedBuildInputs = [ + pythonRelaxDeps = [ + "pyyaml" + ]; + + build-system = [ + setuptools + ]; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + dependencies = [ cerberus pyyaml ruamel-yaml @@ -37,10 +51,10 @@ buildPythonPackage rec { 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"; }; } From 87c6aa9f544d94195440d7948b0a575d39826ad1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 14:34:13 +0200 Subject: [PATCH 3/3] python312Packages.riscv-config: format with nixfmt --- .../python-modules/riscv-config/default.nix | 37 ++++++++----------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/riscv-config/default.nix b/pkgs/development/python-modules/riscv-config/default.nix index 0421a337eae9..298772e12cc7 100644 --- a/pkgs/development/python-modules/riscv-config/default.nix +++ b/pkgs/development/python-modules/riscv-config/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cerberus -, fetchFromGitHub -, fetchpatch -, pythonOlder -, pyyaml -, ruamel-yaml -, setuptools -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + cerberus, + fetchFromGitHub, + fetchpatch, + pythonOlder, + pyyaml, + ruamel-yaml, + setuptools, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q="; }; - pythonRelaxDeps = [ - "pyyaml" - ]; + pythonRelaxDeps = [ "pyyaml" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ cerberus @@ -45,9 +40,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "riscv_config" - ]; + pythonImportsCheck = [ "riscv_config" ]; meta = with lib; { description = "RISC-V configuration validator";