Files
nixpkgs/pkgs/development/python-modules/can-isotp/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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 = 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/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [
jacobkoziej
];
};
}