python311Packages.pylink-square: disable failing tests

This commit is contained in:
Fabian Affolter 2023-08-23 10:53:58 +02:00
parent aa327c9bad
commit c8dc909406

View File

@ -1,20 +1,21 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi
, fetchFromGitHub , fetchFromGitHub
, fetchPypi
, mock , mock
, psutil , psutil
, six
, future
, pytestCheckHook , pytestCheckHook
, pythonOlder
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pylink-square"; pname = "pylink-square";
version = "1.2.0"; version = "1.2.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "square"; owner = "square";
repo = "pylink"; repo = "pylink";
@ -22,20 +23,32 @@ buildPythonPackage rec {
hash = "sha256-rcM7gvUUfXN5pL9uIihzmOCXA7NKjiMt2GaQaGJxD9M="; hash = "sha256-rcM7gvUUfXN5pL9uIihzmOCXA7NKjiMt2GaQaGJxD9M=";
}; };
propagatedBuildInputs = [ psutil six future ]; propagatedBuildInputs = [
psutil
six
];
nativeCheckInputs = [ nativeCheckInputs = [
mock mock
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "pylink" ]; pythonImportsCheck = [
"pylink"
];
disabledTests = [
# AttributeError: 'called_once_with' is not a valid assertion
"test_cp15_register_write_success"
"test_jlink_restarted"
"test_set_log_file_success"
];
meta = with lib; { meta = with lib; {
description = "Python interface for the SEGGER J-Link"; description = "Python interface for the SEGGER J-Link";
homepage = "https://github.com/square/pylink"; homepage = "https://github.com/square/pylink";
changelog = "https://github.com/square/pylink/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/square/pylink/blob/v${version}/CHANGELOG.md";
maintainers = with maintainers; [ dump_stack ];
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ dump_stack ];
}; };
} }