about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyupgrade/default.nix
blob: 95aa57491ca8f7fe5fef7e5aef7af9fb6cdc0fe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ buildPythonPackage
, fetchFromGitHub
, isPy27
, lib
, pytestCheckHook
, tokenize-rt
}:

buildPythonPackage rec {
  pname = "pyupgrade";
  version = "2.10.0";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "asottile";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-XYeqyyfwtS7dHLxeVvmcifW6UCOlnSMxqF1vxezBjT8=";
  };

  checkInputs =  [ pytestCheckHook ];

  propagatedBuildInputs = [ tokenize-rt ];

  meta = with lib; {
    description = "A tool to automatically upgrade syntax for newer versions of the language";
    homepage    = "https://github.com/asottile/pyupgrade";
    license     = licenses.mit;
    maintainers = with maintainers; [ lovesegfault ];
  };
}