Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 argparse-addons, 4 bitstruct, 5 buildPythonPackage, 6 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 = "39.4.5"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.8"; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM="; 29 }; 30 31 nativeBuildInputs = [ 32 setuptools 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 argparse-addons 38 bitstruct 39 can 40 crccheck 41 diskcache 42 textparser 43 ]; 44 45 passthru.optional-dependencies.plot = [ matplotlib ]; 46 47 nativeCheckInputs = [ 48 parameterized 49 pytestCheckHook 50 ] ++ passthru.optional-dependencies.plot; 51 52 pythonImportsCheck = [ "cantools" ]; 53 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 }; 62}