Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 65 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, argparse-addons, bitstruct, buildPythonPackage, python-can, crccheck, diskcache, fetchPypi, matplotlib, parameterized, pytest-freezegun, pytestCheckHook, pythonOlder, setuptools, setuptools-scm, textparser,}:
buildPythonPackage rec { pname = "cantools"; version = "40.7.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-V3kROwaKsEMUDqlEGtd9RK1NOC7tiN4WZ4+zIOMhRuw="; };
nativeBuildInputs = [ setuptools setuptools-scm ];
propagatedBuildInputs = [ argparse-addons bitstruct python-can crccheck diskcache textparser ];
optional-dependencies.plot = [ matplotlib ];
nativeCheckInputs = [ parameterized pytest-freezegun pytestCheckHook ] ++ optional-dependencies.plot;
pythonImportsCheck = [ "cantools" ];
meta = with lib; { description = "Tools to work with CAN bus"; homepage = "https://github.com/cantools/cantools"; changelog = "https://github.com/cantools/cantools/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ gray-heron ]; mainProgram = "cantools"; };}