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