blob: 9446a6dc2b4c221f483cb6ad19266622ac0eaa67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ lib
, buildPythonPackage
, fetchPypi
, hatchling
, pyflakes
, pytestCheckHook
, pythonOlder
, tomli
}:
buildPythonPackage rec {
pname = "autoflake";
version = "2.0.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-HOUgExt/OWkVJC/pHlciH01CQIUpu+Ouk62v7ShlkeA=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
pyflakes
]
++ lib.optional (pythonOlder "3.11") tomli;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"autoflake"
];
disabledTests = [
# AssertionError: True is not false
"test_is_literal_or_name"
];
meta = with lib; {
description = "Tool to remove unused imports and unused variables";
homepage = "https://github.com/myint/autoflake";
license = licenses.mit;
maintainers = with maintainers; [ yuriaisaka ];
};
}
|