From 8f67635ccdc234df59fa5933b76c2fe5d6122428 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sun, 4 Jan 2026 15:24:24 -0500 Subject: [PATCH] fusesoc: 2.2.1 -> 2.4.5; enable tests --- pkgs/by-name/fu/fusesoc/package.nix | 39 +++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/fu/fusesoc/package.nix b/pkgs/by-name/fu/fusesoc/package.nix index 364bb8de030e..ad40fb5665d4 100644 --- a/pkgs/by-name/fu/fusesoc/package.nix +++ b/pkgs/by-name/fu/fusesoc/package.nix @@ -5,30 +5,55 @@ iverilog, verilator, gnumake, + gitMinimal, + openssh, + writableTmpDirAsHomeHook, }: -python3Packages.buildPythonPackage rec { +python3Packages.buildPythonApplication rec { pname = "fusesoc"; - version = "2.2.1"; - format = "setuptools"; + version = "2.4.5"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-M36bXBgY8hR33AVDlHoH8PZJG2Bi0KOEI07IMns7R4w="; + hash = "sha256-VBjJ7wiEz441iVquLMGabtdYbK07+dtHY05x8QzdSL8="; }; - nativeBuildInputs = with python3Packages; [ setuptools-scm ]; + build-system = with python3Packages; [ + setuptools + setuptools-scm + ]; dependencies = with python3Packages; [ edalize - fastjsonschema pyparsing pyyaml simplesat - ipyxact + fastjsonschema + argcomplete + ]; + + nativeCheckInputs = [ + gitMinimal + openssh + python3Packages.pytestCheckHook + writableTmpDirAsHomeHook ]; pythonImportsCheck = [ "fusesoc" ]; + disabledTestPaths = [ + # These tests require network access + "tests/test_coremanager.py::test_export" + "tests/test_libraries.py::test_library_add" + "tests/test_libraries.py::test_library_update_with_initialize" + "tests/test_provider.py::test_git_provider" + "tests/test_provider.py::test_github_provider" + "tests/test_provider.py::test_url_provider" + "tests/test_usecases.py::test_git_library_with_default_branch_is_added_and_updated" + "tests/test_usecases.py::test_update_git_library_with_fixed_version" + ]; + makeWrapperArgs = [ "--suffix PATH : ${ lib.makeBinPath [