forked from mirrors/nixpkgs
cantoolz: disable failing test
- migrate to python3.pkgs.buildPythonApplication
This commit is contained in:
parent
9e6887b3e5
commit
815299d478
|
@ -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";
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue