19 buildPythonPackage rec {
23 # uses fetchFromGitHub as PyPi release misses test/ dir
24 src = fetchFromGitHub {
28 sha256 = "0x8x8kbg4gyzi0ia9657xygp0mqfii76b67fsx76d31bqsdvlda5";
31 propagatedBuildInputs = [
44 ] ++ lib.optional (pythonOlder "3.5") typing;
47 substituteInPlace setup.py \
48 --replace "version = versioneer.get_version()" "version = \"${version}\""
51 nativeCheckInputs = [ pytestCheckHook ];
52 # long_envvar_name_imports requires stable key value pair ordering
53 pytestFlagsArray = [ "-s src/canmatrix" ];
54 disabledTests = [ "long_envvar_name_imports" ];
55 pythonImportsCheck = [ "canmatrix" ];
58 homepage = "https://github.com/ebroecker/canmatrix";
59 description = "Support and convert several CAN (Controller Area Network) database formats .arxml .dbc .dbf .kcd .sym fibex xls(x)";
60 license = licenses.bsd2;
61 maintainers = with maintainers; [ sorki ];