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