2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-14 16:14:50 +00:00
nixpkgs/pkgs/development/python-modules/pyupgrade/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
794 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2021-03-05 01:23:13 +00:00
, fetchFromGitHub
, pythonOlder
2021-03-05 01:23:13 +00:00
, pytestCheckHook
, tokenize-rt
}:
buildPythonPackage rec {
pname = "pyupgrade";
version = "3.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2021-03-05 01:23:13 +00:00
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
hash = "sha256-vg1eNxIkdHM1MMTkCof/ED6nqFhwSgEiKjYmqAyHMp0=";
2021-03-05 01:23:13 +00:00
};
propagatedBuildInputs = [
tokenize-rt
];
2021-03-05 01:23:13 +00:00
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyupgrade"
];
2021-03-05 01:23:13 +00:00
meta = with lib; {
description = "Tool to automatically upgrade syntax for newer versions of the language";
homepage = "https://github.com/asottile/pyupgrade";
license = licenses.mit;
2021-03-05 01:23:13 +00:00
maintainers = with maintainers; [ lovesegfault ];
};
}