Merge pull request #299148 from gray-heron/python311Packages.cantools
python311Packages.cantools: add optional-dependencies, rm postPatch
This commit is contained in:
commit
95695da4aa
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user