nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 821 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 setuptools, 8 tokenize-rt, 9}: 10 11buildPythonPackage rec { 12 pname = "pyupgrade"; 13 version = "3.21.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "asottile"; 18 repo = "pyupgrade"; 19 rev = "v${version}"; 20 hash = "sha256-u4iudzPhVuAOS9cL3z6FCVpWKJZHg7UGpe9aHnN7Byc="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ tokenize-rt ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "pyupgrade" ]; 30 31 meta = { 32 description = "Tool to automatically upgrade syntax for newer versions of the language"; 33 mainProgram = "pyupgrade"; 34 homepage = "https://github.com/asottile/pyupgrade"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ lovesegfault ]; 37 }; 38}