From a9c1658fdca094c63efc604beeeb25f156021e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Mon, 5 May 2025 22:46:20 +0200 Subject: [PATCH] python312Packages.blocksat-cli: add missing dependency --- .../python-modules/blocksat-cli/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/blocksat-cli/default.nix b/pkgs/development/python-modules/blocksat-cli/default.nix index c283bdd70d81..c0d8fefe68d7 100644 --- a/pkgs/development/python-modules/blocksat-cli/default.nix +++ b/pkgs/development/python-modules/blocksat-cli/default.nix @@ -29,6 +29,12 @@ buildPythonPackage rec { hash = "sha256-7lSK9IGu/K03xSDxZv+BSTJwLrQoHs+POBq/ixYTVR4="; }; + # Upstream setup.py installs both the CLI and GUI versions. + # To pull only the required dependencyes, either setup_cli.py or setup_gui.py should be used. + postPatch = '' + mv setup_cli.py setup.py + ''; + pythonRelaxDeps = [ "pyasyncore" ]; build-system = [ setuptools ]; @@ -48,8 +54,13 @@ buildPythonPackage rec { "test_monitor_get_stats" "test_monitor_update_with_reporting_enabled" "test_erasure_recovery" + # Non-NixOS package managers are not present in the build environment. + "test_parse_upgradable_list_apt" + "test_parse_upgradable_list_dnf" ]; + disabledTestPaths = [ "blocksatgui/tests/" ]; + pythonImportsCheck = [ "blocksatcli" ]; meta = with lib; {