Commit 29457a1b authored by Cezary Siwek's avatar Cezary Siwek
Browse files

python311Packages.cantools: add optional-dependencies, rm postPatch

parent 2f345e76
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -27,11 +27,6 @@ buildPythonPackage rec {
    hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "setuptools_scm>=8" "setuptools_scm"
  '';

  nativeBuildInputs = [
    setuptools
    setuptools-scm
@@ -43,14 +38,17 @@ buildPythonPackage rec {
    can
    crccheck
    diskcache
    matplotlib
    textparser
  ];

  passthru.optional-dependencies.plot = [
    matplotlib
  ];

  nativeCheckInputs = [
    parameterized
    pytestCheckHook
  ];
  ] ++ passthru.optional-dependencies.plot;

  pythonImportsCheck = [
    "cantools"