python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / cantools / default.nix
blobaf203e8a947091e706ed59ec6c209d0aa6b26bc8
2   lib,
3   argparse-addons,
4   bitstruct,
5   buildPythonPackage,
6   python-can,
7   crccheck,
8   diskcache,
9   fetchPypi,
10   matplotlib,
11   parameterized,
12   pytestCheckHook,
13   pythonOlder,
14   setuptools,
15   setuptools-scm,
16   textparser,
19 buildPythonPackage rec {
20   pname = "cantools";
21   version = "39.4.11";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   src = fetchPypi {
27     inherit pname version;
28     hash = "sha256-C3vYiiNrst39faXdcTBY6Xt0kYXp0SV0E7J71M/n2Co=";
29   };
31   nativeBuildInputs = [
32     setuptools
33     setuptools-scm
34   ];
36   propagatedBuildInputs = [
37     argparse-addons
38     bitstruct
39     python-can
40     crccheck
41     diskcache
42     textparser
43   ];
45   optional-dependencies.plot = [ matplotlib ];
47   nativeCheckInputs = [
48     parameterized
49     pytestCheckHook
50   ] ++ optional-dependencies.plot;
52   pythonImportsCheck = [ "cantools" ];
54   meta = with lib; {
55     description = "Tools to work with CAN bus";
56     mainProgram = "cantools";
57     homepage = "https://github.com/cantools/cantools";
58     changelog = "https://github.com/cantools/cantools/releases/tag/${version}";
59     license = licenses.mit;
60     maintainers = with maintainers; [ gray-heron ];
61   };