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=";
|
hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace "setuptools_scm>=8" "setuptools_scm"
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
|
@ -43,14 +38,17 @@ buildPythonPackage rec {
|
||||||
can
|
can
|
||||||
crccheck
|
crccheck
|
||||||
diskcache
|
diskcache
|
||||||
matplotlib
|
|
||||||
textparser
|
textparser
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies.plot = [
|
||||||
|
matplotlib
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
parameterized
|
parameterized
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
] ++ passthru.optional-dependencies.plot;
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"cantools"
|
"cantools"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user