about summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/autoflake/default.nix
blob: adc861588dd5a1f31bae1043d5d26e7c5a9e859b (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
{ lib
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "autoflake";
  version = "1.4";

  src = python3.pkgs.fetchPypi {
    inherit pname version;
    hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    pyflakes
  ];

  checkInputs = with python3.pkgs; [
    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 ];
  };
}