11 buildPythonPackage rec {
12 pname = "reorder-python-imports";
16 disabled = pythonOlder "3.8";
18 src = fetchFromGitHub {
20 repo = "reorder_python_imports";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-N0hWrrUeojlUDZx2Azs/y2kCaknQ62hHdp0J2ZXPElY=";
25 build-system = [ setuptools ];
27 dependencies = [ classify-imports ];
29 pythonImportsCheck = [ "reorder_python_imports" ];
31 nativeCheckInputs = [ pytestCheckHook ];
33 # prints an explanation about PYTHONPATH first
34 # and therefore fails the assertion
35 disabledTests = [ "test_success_messages_are_printed_on_stderr" ];
38 description = "Tool for automatically reordering python imports";
39 homepage = "https://github.com/asottile/reorder_python_imports";
40 license = licenses.mit;
41 maintainers = with maintainers; [ gador ];
42 mainProgram = "reorder-python-imports";