2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
argparse-addons,
|
|
|
|
bitstruct,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-can,
|
2024-06-05 15:53:02 +00:00
|
|
|
crccheck,
|
|
|
|
diskcache,
|
|
|
|
fetchPypi,
|
|
|
|
matplotlib,
|
|
|
|
parameterized,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
textparser,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cantools";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "39.4.5";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools-scm
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
argparse-addons
|
|
|
|
bitstruct
|
2024-09-19 14:19:46 +00:00
|
|
|
python-can
|
2023-11-16 04:20:00 +00:00
|
|
|
crccheck
|
|
|
|
diskcache
|
|
|
|
textparser
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies.plot = [ matplotlib ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
parameterized
|
|
|
|
pytestCheckHook
|
2024-10-04 16:56:33 +00:00
|
|
|
] ++ optional-dependencies.plot;
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cantools" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools to work with CAN bus";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cantools";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/cantools/cantools";
|
|
|
|
changelog = "https://github.com/cantools/cantools/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gray-heron ];
|
|
|
|
};
|
|
|
|
}
|