Skip to content

Commit

Permalink
python311Packages.cantools: add optional-dependencies, rm postPatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Cezary Siwek committed Feb 29, 2024
1 parent 8eff9f9 commit bdbe6b1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkgs/development/python-modules/cantools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ buildPythonPackage rec {
hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM=";
};

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

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

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

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

pythonImportsCheck = [
"cantools"
Expand Down

0 comments on commit bdbe6b1

Please sign in to comment.