mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
Merge pull request #227423 from moduon/autoflake-tomli
autoflake: depend on tomli for older pythons
This commit is contained in:
commit
f8b7dd41a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user