19 buildPythonPackage rec {
22 format = "setuptools";
24 disabled = pythonOlder "3.7";
26 src = fetchFromGitHub {
29 rev = "refs/tags/${version}";
30 hash = "sha256-UUJnLVt+uOj8Eav162btprkUeTemItGrSnBBB9UhJJI=";
34 substituteInPlace setup.py \
35 --replace "version = versioneer.get_version()" 'version = "${version}"'
38 propagatedBuildInputs = [
43 ] ++ lib.optionals (pythonOlder "3.8") [
47 passthru.optional-dependencies = {
77 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
80 # long_envvar_name_imports requires stable key value pair ordering
85 "long_envvar_name_imports"
88 pythonImportsCheck = [
93 description = "Support and convert several CAN (Controller Area Network) database formats";
94 homepage = "https://github.com/ebroecker/canmatrix";
95 changelog = "https://github.com/ebroecker/canmatrix/releases/tag/${version}";
96 license = licenses.bsd2;
97 maintainers = with maintainers; [ sorki ];