13 buildPythonPackage rec {
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-/1iKYmtNRw9u59zzJDwV7b9+EPxFJDHvhjTioGt5LLU=";
38 # Confirm that the produced executable script is wrapped correctly and runs
39 # OK, by launching it in a subshell without PYTHONPATH
42 echo "Testing that `isort --version-number` returns OK..."
43 $out/bin/isort --version-number
49 export PATH=$PATH:$out/bin
53 "--ignore=tests/benchmark/" # requires pytest-benchmark
54 "--ignore=tests/integration/" # pulls in 10 other packages
55 "--ignore=tests/unit/profiles/test_black.py" # causes infinite recursion to include black
59 "test_run" # doesn't like paths in /build
60 "test_fuzz_show_unified_diff" # flakey
61 "test_pyi_formatting_issue_942"
62 "test_requirements_finder"
64 "test_main" # relies on git
65 "test_command_line" # not thread safe
66 "test_encoding_not_in_comment" # not python 3.9 compatible
67 "test_encoding_not_in_first_two_lines" # not python 3.9 compatible
68 "test_requirements_dir" # requires network
69 # plugin not available
70 "test_isort_literals_issue_1358"
71 "test_isort_supports_formatting_plugins_issue_1353"
72 "test_sort_configurable_sort_issue_1732"
73 "test_value_assignment_list"
74 # profiles not available
75 "test_isort_supports_shared_profiles_issue_970"
76 # https://github.com/PyCQA/isort/issues/2234
77 "test_isort_should_warn_on_empty_custom_config_issue_1433"
81 description = "Python utility / library to sort Python imports";
82 homepage = "https://github.com/PyCQA/isort";
83 license = licenses.mit;
84 maintainers = with maintainers; [ couchemar ];
85 mainProgram = "isort";