Files
nixpkgs/pkgs/development/python-modules/can-isotp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "can-isotp";
version = "2.0.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pylessard";
repo = "python-can-isotp";
tag = "v${version}";
hash = "sha256-Gts6eeeto++DKnkojFvCwyPVPRSq2OcTA0jAYrPAWJI=";
};
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 = {
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
jacobkoziej
];
};
}