Files
nixpkgs/pkgs/development/python-modules/cantools/default.nix
T
2026-03-09 05:48:13 +00:00

63 lines
1.1 KiB
Nix

{
lib,
argparse-addons,
bitstruct,
buildPythonPackage,
python-can,
crccheck,
diskcache,
fetchPypi,
matplotlib,
parameterized,
pytest-freezegun,
pytestCheckHook,
setuptools,
setuptools-scm,
textparser,
}:
buildPythonPackage rec {
pname = "cantools";
version = "41.2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-HxdoK91A9oALjuiW0aGFM/5mRdbeb8j8T3J2n/uuLR4=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
argparse-addons
bitstruct
python-can
crccheck
diskcache
textparser
];
optional-dependencies.plot = [ matplotlib ];
nativeCheckInputs = [
parameterized
pytest-freezegun
pytestCheckHook
]
++ optional-dependencies.plot;
pythonImportsCheck = [ "cantools" ];
meta = {
description = "Tools to work with CAN bus";
homepage = "https://github.com/cantools/cantools";
changelog = "https://github.com/cantools/cantools/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gray-heron ];
mainProgram = "cantools";
};
}