treewide: prefer meta.broken over disabled by platform (#480015)

This commit is contained in:
Martin Weinelt
2026-01-14 14:12:49 +00:00
committed by GitHub
3 changed files with 8 additions and 8 deletions
@@ -49,10 +49,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "mahotas" ];
disabled = stdenv.hostPlatform.isi686; # Failing tests
meta = {
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
broken =
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)
# Failing tests
|| stdenv.hostPlatform.isi686;
description = "Computer vision package based on numpy";
homepage = "https://mahotas.readthedocs.io/";
maintainers = with lib.maintainers; [ luispedro ];
@@ -9,7 +9,6 @@
paramiko,
psutil,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
@@ -17,8 +16,6 @@ buildPythonPackage rec {
version = "21.4.4";
format = "setuptools";
disabled = pythonOlder "3.7" || stdenv.hostPlatform.isDarwin;
src = fetchFromGitHub {
owner = "greenbone";
repo = "ospd";
@@ -44,5 +41,6 @@ buildPythonPackage rec {
changelog = "https://github.com/greenbone/ospd/releases/tag/v${version}";
license = with lib.licenses; [ agpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
broken = stdenv.hostPlatform.isDarwin;
};
}
@@ -15,8 +15,7 @@ buildPythonPackage rec {
pname = "soundfile";
version = "0.13.1";
pyproject = true;
# https://github.com/bastibe/python-soundfile/issues/157
disabled = isPyPy || stdenv.hostPlatform.isi686;
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
@@ -45,5 +44,7 @@ buildPythonPackage rec {
description = "Audio library based on libsndfile, CFFI and NumPy";
license = lib.licenses.bsd3;
homepage = "https://github.com/bastibe/python-soundfile";
# https://github.com/bastibe/python-soundfile/issues/157
broken = stdenv.hostPlatform.isi686;
};
}