Merge pull request #227423 from moduon/autoflake-tomli

autoflake: depend on tomli for older pythons
This commit is contained in:
Martin Weinelt 2023-06-08 12:24:16 +02:00 committed by GitHub
commit f8b7dd41a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,9 @@
, hatchling
, pyflakes
, pytestCheckHook
, pythonOlder
, tomli
}:
buildPythonPackage rec {
pname = "autoflake";
version = "2.0.1";
@ -22,7 +23,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [
pyflakes
];
]
++ lib.optional (pythonOlder "3.11") tomli;
nativeCheckInputs = [
pytestCheckHook