Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 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, 17}: 18 19buildPythonPackage rec { 20 pname = "cantools"; 21 version = "40.2.3"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.9"; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-PFXL19fVJ6VluYEj+7uPXfCRMvdM63Iv9UH9gLWZFCQ="; 29 }; 30 31 nativeBuildInputs = [ 32 setuptools 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 argparse-addons 38 bitstruct 39 python-can 40 crccheck 41 diskcache 42 textparser 43 ]; 44 45 optional-dependencies.plot = [ matplotlib ]; 46 47 nativeCheckInputs = [ 48 parameterized 49 pytestCheckHook 50 ] 51 ++ optional-dependencies.plot; 52 53 pythonImportsCheck = [ "cantools" ]; 54 55 meta = with lib; { 56 description = "Tools to work with CAN bus"; 57 mainProgram = "cantools"; 58 homepage = "https://github.com/cantools/cantools"; 59 changelog = "https://github.com/cantools/cantools/releases/tag/${version}"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ gray-heron ]; 62 }; 63}