1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, astor 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "flynt"; 11 version = "0.66"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "ikamensh"; 17 repo = "flynt"; 18 rev = version; 19 hash = "sha256-DV433wqLjF5k4g8J7rj5gZfaw+Y4/TDOoFKo3eKDjZ4="; 20 }; 21 22 propagatedBuildInputs = [ astor ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 meta = with lib; { 27 description = "command line tool to automatically convert a project's Python code from old format style strings into Python 3.6+'s f-strings"; 28 homepage = "https://github.com/ikamensh/flynt"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ cpcloud ]; 31 }; 32}