12 buildPythonPackage rec {
17 # lib2to3 usage and unmaintained since 2019
18 disabled = pythonOlder "3.9" || pythonAtLeast "3.13";
20 src = fetchFromGitHub {
24 hash = "sha256-cWV/Q+LbeIxnQNqyatRWQUF8X+HHlQdc10y9qJ7v3dA=";
27 nativeBuildInputs = [ setuptools ];
29 propagatedBuildInputs = [ untokenize ];
31 nativeCheckInputs = [ pytestCheckHook ];
33 pythonImportsCheck = [ "unify" ];
36 # https://github.com/myint/unify/issues/21
38 "test_format_code_with_backslash_in_comment"
42 description = "Modifies strings to all use the same quote where possible";
43 mainProgram = "unify";
44 homepage = "https://github.com/myint/unify";
45 license = licenses.mit;
46 maintainers = with maintainers; [ FlorianFranzen ];