Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 731 B view raw
1{ buildPythonPackage 2, fetchFromGitHub 3, isPy27 4, lib 5, pytestCheckHook 6, tokenize-rt 7}: 8 9buildPythonPackage rec { 10 pname = "pyupgrade"; 11 version = "2.16.0"; 12 disabled = isPy27; 13 14 src = fetchFromGitHub { 15 owner = "asottile"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "sha256-U1Ak0oGy0FxBMqRM2A3N7VuNDz2aUW4FFW+hKKhjfdk="; 19 }; 20 21 checkInputs = [ pytestCheckHook ]; 22 23 propagatedBuildInputs = [ tokenize-rt ]; 24 25 pythonImportsCheck = [ "pyupgrade" ]; 26 27 meta = with lib; { 28 description = "Tool to automatically upgrade syntax for newer versions of the language"; 29 homepage = "https://github.com/asottile/pyupgrade"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ lovesegfault ]; 32 }; 33}