Merge pull request #299148 from gray-heron/python311Packages.cantools

python311Packages.cantools: add optional-dependencies, rm postPatch
This commit is contained in:
Fabian Affolter 2024-03-30 09:12:18 +01:00 committed by GitHub
commit 95695da4aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"