Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, argparse-addons, bitstruct, buildPythonPackage, python-can, crccheck, diskcache, fetchPypi, matplotlib, parameterized, pytestCheckHook, pythonOlder, setuptools, setuptools-scm, textparser,}:
buildPythonPackage rec { pname = "cantools"; version = "40.2.3"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-PFXL19fVJ6VluYEj+7uPXfCRMvdM63Iv9UH9gLWZFCQ="; };
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 ]; };}