blob: 99df7efc1a8eba6268262d8afbd8141a67a749c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "can-isotp";
version = "2.0.7";
pyproject = true;
src = fetchFromGitHub {
owner = "pylessard";
repo = "python-can-isotp";
tag = "v${version}";
hash = "sha256-Gts6eeeto++DKnkojFvCwyPVPRSq2OcTA0jAYrPAWJI=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# we don't support socket tests
"test/test_can_stack.py"
"test/test_layer_vs_socket.py"
"test/test_socket.py"
# behaves inconsistently due to timing
"test/test_transport_layer.py"
"test/test_helper_classes.py"
];
pythonImportsCheck = [ "isotp" ];
meta = {
description = "Python package that provides support for ISO-TP (ISO-15765) protocol";
homepage = "https://github.com/pylessard/python-can-isotp";
changelog = "https://github.com/pylessard/python-can-isotp/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
jacobkoziej
];
};
}
|