python312Packages.pint-xarray: init at 0.4 (#377344)
[NixPkgs.git] / pkgs / development / python-modules / can-isotp / default.nix
blob1ccbdc7364167c38fcb88629ec45f8533cf59868
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pythonOlder,
7   pytestCheckHook,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "can-isotp";
13   version = "2.0.6";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "pylessard";
20     repo = "python-can-isotp";
21     tag = "v${version}";
22     hash = "sha256-wfZMVfLBdYkFbb0DiDWmGaraykJ/QL64Zkl2/nBu4lY=";
23   };
25   build-system = [ setuptools ];
27   nativeCheckInputs = [ pytestCheckHook ];
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"
35     # behaves inconsistently due to timing
36     "test/test_transport_layer.py"
37     "test/test_helper_classes.py"
38   ];
40   pythonImportsCheck = [ "isotp" ];
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/v${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [
48       jacobkoziej
49     ];
50   };