12 buildPythonPackage rec {
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
22 rev = "refs/tags/${version}";
23 hash = "sha256-UHY4UDBHcP3ARikktIehSUD3Dx8A0xpOnfKWWrLCsOY=";
26 build-system = [ hatchling ];
28 propagatedBuildInputs = [ astor ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
30 nativeCheckInputs = [ pytestCheckHook ];
32 pythonImportsCheck = [ "flynt" ];
37 "test_mixed_quote_types_unsafe"
41 description = "Tool to automatically convert old string literal formatting to f-strings";
42 homepage = "https://github.com/ikamensh/flynt";
43 changelog = "https://github.com/ikamensh/flynt/blob/${version}/CHANGELOG.md";
44 license = licenses.mit;
45 maintainers = with maintainers; [ cpcloud ];
46 mainProgram = "flynt";