From 50b34650c9dfa5500c0ba65a264d5de694a230a6 Mon Sep 17 00:00:00 2001 From: Jacob Koziej Date: Sun, 8 Sep 2024 22:44:30 -0400 Subject: [PATCH 1/2] maintainers: add jacobkoziej --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 2aa4845b8096..1c770b58824f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9248,6 +9248,13 @@ githubId = 7558482; name = "Jack Gerrits"; }; + jacobkoziej = { + name = "Jacob Koziej"; + email = "jacobkoziej@gmail.com"; + github = "jacobkoziej"; + githubId = 45084216; + keys = [ { fingerprint = "1BF9 8D10 E0D0 0B41 5723 5836 4C13 3A84 E646 9228"; } ]; + }; jaduff = { email = "jdduffpublic@proton.me"; github = "jaduff"; From dac076fdd78734cd6dec8d79255873e8e4b2db1a Mon Sep 17 00:00:00 2001 From: Jacob Koziej Date: Sun, 6 Oct 2024 15:32:40 -0400 Subject: [PATCH 2/2] python3Packages.can-isotp: init at 2.0.6 --- .../python-modules/can-isotp/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/can-isotp/default.nix diff --git a/pkgs/development/python-modules/can-isotp/default.nix b/pkgs/development/python-modules/can-isotp/default.nix new file mode 100644 index 000000000000..90dba000d395 --- /dev/null +++ b/pkgs/development/python-modules/can-isotp/default.nix @@ -0,0 +1,51 @@ +{ + 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 + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bb45317ec90d..319dd25f521b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };