472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
argparse-addons,
|
|
bitstruct,
|
|
buildPythonPackage,
|
|
python-can,
|
|
crccheck,
|
|
diskcache,
|
|
fetchPypi,
|
|
matplotlib,
|
|
parameterized,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
textparser,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cantools";
|
|
version = "39.4.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
argparse-addons
|
|
bitstruct
|
|
python-can
|
|
crccheck
|
|
diskcache
|
|
textparser
|
|
];
|
|
|
|
optional-dependencies.plot = [ matplotlib ];
|
|
|
|
nativeCheckInputs = [
|
|
parameterized
|
|
pytestCheckHook
|
|
] ++ optional-dependencies.plot;
|
|
|
|
pythonImportsCheck = [ "cantools" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tools to work with CAN bus";
|
|
mainProgram = "cantools";
|
|
homepage = "https://github.com/cantools/cantools";
|
|
changelog = "https://github.com/cantools/cantools/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gray-heron ];
|
|
};
|
|
}
|