Unverified Commit dac076fd authored by Jacob Koziej's avatar Jacob Koziej
Browse files

python3Packages.can-isotp: init at 2.0.6

parent 50b34650
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "can-isotp";
  version = "2.0.6";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "pylessard";
    repo = "python-can-isotp";
    rev = "refs/tags/v${version}";
    hash = "sha256-wfZMVfLBdYkFbb0DiDWmGaraykJ/QL64Zkl2/nBu4lY=";
  };

  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 = with lib; {
    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/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [
      jacobkoziej
    ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1977,6 +1977,8 @@ self: super: with self; {
  camel-converter = callPackage ../development/python-modules/camel-converter { };
  can-isotp = callPackage ../development/python-modules/can-isotp { };
  canals = callPackage ../development/python-modules/canals { };
  canmatrix = callPackage ../development/python-modules/canmatrix { };