Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools-scm, 6 can, 7 canmatrix, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "canopen"; 14 version = "2.3.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-eSCEqTwTjVsqQG3dLU61ziCPA72P2mD4GtK7jVbGuCc="; 22 }; 23 24 nativeBuildInputs = [ setuptools-scm ]; 25 26 propagatedBuildInputs = [ 27 can 28 canmatrix 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "canopen" ]; 34 35 meta = with lib; { 36 description = "CANopen stack implementation"; 37 homepage = "https://github.com/christiansandberg/canopen/"; 38 changelog = "https://github.com/christiansandberg/canopen/releases/tag/v${version}"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ sorki ]; 41 }; 42}