cantoolz: disable failing test

- migrate to python3.pkgs.buildPythonApplication
This commit is contained in:
Fabian Affolter 2022-04-19 15:00:27 +02:00
parent 9e6887b3e5
commit 815299d478
2 changed files with 18 additions and 16 deletions

View file

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

View file

@ -4405,7 +4405,7 @@ with pkgs;
cantata = libsForQt5.callPackage ../applications/audio/cantata { }; 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 { }; can-utils = callPackage ../os-specific/linux/can-utils { };