Merge pull request #169324 from fabaff/cantoolz-fix

cantoolz: disable failing test
This commit is contained in:
Fabian Affolter 2022-04-19 18:18:02 +02:00 committed by GitHub
commit ef0f07f8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 16 deletions

View File

@ -1,26 +1,18 @@
{ lib
, bitstring
, buildPythonApplication
, fetchFromGitHub
, fetchpatch
, flask
, mido
, numpy
, pyserial
, pytestCheckHook
, pythonOlder
, python3
}:
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "cantoolz";
version = "3.7.0";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "CANToolz";
repo = "CANToolz";
rev = "v${version}";
sha256 = "0xkj7zyx6pz866q61c84mdagpgdyd633v85hk7qxhamca33rc4yi";
sha256 = "sha256-0ROWx1CsKtjxmbCgPYZpvr37VKsEsWCwMehf0/0/cnY=";
};
patches = [
@ -31,7 +23,7 @@ buildPythonApplication rec {
})
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3.pkgs; [
flask
pyserial
mido
@ -39,9 +31,19 @@ buildPythonApplication rec {
bitstring
];
checkInputs = [ pytestCheckHook ];
disabledTests = [ "test_process" ];
pythonImportsCheck = [ "cantoolz" ];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
disabledTests = [
"test_process"
# Sandbox issue
"test_server"
];
pythonImportsCheck = [
"cantoolz"
];
meta = with lib; {
description = "Black-box CAN network analysis framework";

View File

@ -4405,7 +4405,7 @@ with pkgs;
cantata = libsForQt5.callPackage ../applications/audio/cantata { };
cantoolz = python3Packages.callPackage ../tools/networking/cantoolz { };
cantoolz = callPackage ../tools/networking/cantoolz { };
can-utils = callPackage ../os-specific/linux/can-utils { };