depot/third_party/nixpkgs/pkgs/development/python-modules/pyupgrade/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

33 lines
731 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, isPy27
, lib
, pytestCheckHook
, tokenize-rt
}:
buildPythonPackage rec {
pname = "pyupgrade";
version = "2.19.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zDT8VskHEX4uldMvxnb9A+FKMuvZbtEcmdVl5mghTs4=";
};
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 ];
};
}