mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
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>
62 lines
1.1 KiB
Nix
62 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.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-XJGmbl4DpKxXJ/ICB98dpWgXSKFUwryF71Mv754BCdE=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|