Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cantools / default.nix
blob2b87d4de37eaa7c5655c815f455650b2590f227d
1 { lib
2 , argparse-addons
3 , bitstruct
4 , buildPythonPackage
5 , can
6 , crccheck
7 , diskcache
8 , fetchPypi
9 , matplotlib
10 , parameterized
11 , pytestCheckHook
12 , pythonOlder
13 , setuptools
14 , setuptools-scm
15 , textparser
18 buildPythonPackage rec {
19   pname = "cantools";
20   version = "39.4.5";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM=";
28   };
30   nativeBuildInputs = [
31     setuptools
32     setuptools-scm
33   ];
35   propagatedBuildInputs = [
36     argparse-addons
37     bitstruct
38     can
39     crccheck
40     diskcache
41     textparser
42   ];
44   passthru.optional-dependencies.plot = [
45     matplotlib
46   ];
48   nativeCheckInputs = [
49     parameterized
50     pytestCheckHook
51   ] ++ passthru.optional-dependencies.plot;
53   pythonImportsCheck = [
54     "cantools"
55   ];
57   meta = with lib; {
58     description = "Tools to work with CAN bus";
59     mainProgram = "cantools";
60     homepage = "https://github.com/cantools/cantools";
61     changelog = "https://github.com/cantools/cantools/releases/tag/${version}";
62     license = licenses.mit;
63     maintainers = with maintainers; [ gray-heron ];
64   };