{ lib , buildPythonPackage , fetchFromGitHub , pythonOlder , pytestCheckHook , tokenize-rt }: buildPythonPackage rec { pname = "pyupgrade"; version = "2.23.1"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "asottile"; repo = pname; rev = "v${version}"; sha256 = "1jc0gh0y5fz02wab50v6m4x0pfycdkjvf1vw05d8d0yqsv7ld7fw"; }; checkInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ tokenize-rt ]; pythonImportsCheck = [ "pyupgrade" ]; meta = with lib; { description = "Tool to automatically upgrade syntax for newer versions of the language"; homepage = "https://github.com/asottile/pyupgrade"; license = licenses.mit; maintainers = with maintainers; [ lovesegfault ]; }; }