summary refs log tree commit diff
path: root/pkgs/development/python-modules/autoflake/default.nix
blob: 2280c33f802093a55cc2181f8a14c0fdf4100098 (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
{ lib
, buildPythonPackage
, fetchPypi
, pyflakes
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "autoflake";
  version = "1.4";

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

  propagatedBuildInputs = [
    pyflakes
  ];

  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 ];
  };
}